OSDN Git Service

Simpleperf: don't use designation in struct member initialization.
authorYabin Cui <yabinc@google.com>
Thu, 25 Jun 2015 20:23:55 +0000 (13:23 -0700)
committerYabin Cui <yabinc@google.com>
Thu, 25 Jun 2015 21:34:42 +0000 (14:34 -0700)
commitbe6afa300a01ad1e6cb493e748d709d0b3b5e3b5
tree9b385274f53ce90e2810794ebdcae5522921941f
parentd713f959ec1fe07ed993e2c9f4166b52aa98a58c
Simpleperf: don't use designation in struct member initialization.

designation is not supported in c++ standard, and partially initialized
struct can be unsafe.
And use constexpr when desired.

Bug: 19483574
Change-Id: I4f445845a7d97aeb685f02176485c70f8b0ca995
simpleperf/environment.h
simpleperf/record_file_format.h
simpleperf/sample_tree.cpp
simpleperf/sample_tree.h