Skip to content

Commit

Permalink
initialize variable
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Jul 19, 2017
1 parent 504de00 commit 715b705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CondFormats/Serialization/interface/Test.h
Expand Up @@ -52,7 +52,7 @@ void testSerialization()
// of non-POD types without user-provided default constructor
// (since it would be uninitialized), so we always create
// a non-const object.
T originalObject;
T originalObject{};
const T & originalObjectRef = originalObject;
{
std::ofstream ofs(filename, std::ios::out | std::ios::binary);
Expand Down

0 comments on commit 715b705

Please sign in to comment.