Simplify construction of tuples

The latest version of GCC flags an error on this code, where string
length isn't initialized in some cases, and prints several pages of
template and compiler errors.

This commit simplifies the code such that rather than constructing a
tuple, moving it to a stack variable, then moving it into the vector,
simply constructs the tuple in the vector in the first place.  This
avoids an undefined behavior warning of use after free on the tuple
variable.

Tested: Code compiles.

Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I4d8424f452a98e558607527abd3ec9cf7f4460d1
1 file changed