Kaydet (Commit) 6aff9717 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Bogus warning C4701: potentially uninitialized local variable

Change-Id: I51caaca911f71788940260bd63d3854526d7473f
üst f86d51e1
...@@ -332,7 +332,7 @@ void StringHelper::appendHex( OUStringBuffer& rStr, sal_Int64 nData, bool bPrefi ...@@ -332,7 +332,7 @@ void StringHelper::appendHex( OUStringBuffer& rStr, sal_Int64 nData, bool bPrefi
static sal_uInt64 static sal_uInt64
lcl_ConvertDouble(double const f) lcl_ConvertDouble(double const f)
{ {
sal_uInt64 i; sal_uInt64 i = sal_uInt64();
for (size_t j = 0; j < sizeof(double); ++j) for (size_t j = 0; j < sizeof(double); ++j)
{ // hopefully both endian independent and strict aliasing safe { // hopefully both endian independent and strict aliasing safe
reinterpret_cast<char *>(&i)[j] = reinterpret_cast<char const *>(&f)[j]; reinterpret_cast<char *>(&i)[j] = reinterpret_cast<char const *>(&f)[j];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment