Skip to content

Commit

Permalink
Merge pull request #19817 from davidlange6/SerialUninit
Browse files Browse the repository at this point in the history
initialize variable in CondFormats/Serialization
  • Loading branch information
cmsbuild committed Jul 19, 2017
2 parents 55583b6 + 715b705 commit 98c33ab
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 98c33ab

Please sign in to comment.