diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-02-13 10:09:05 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-02-14 16:53:12 +0100 |
commit | 973160bb4853f2913024c7ef4bf9f5e638e93c5a (patch) | |
tree | ff4e30592b6d77cb172e5d690127400fe0fe1093 /cppuhelper | |
parent | svl, too (diff) | |
download | core-973160bb4853f2913024c7ef4bf9f5e638e93c5a.tar.gz core-973160bb4853f2913024c7ef4bf9f5e638e93c5a.zip |
Comment clean-up
Change-Id: I7696dde7337531629d29cce7eb3f882cb4bfad0d
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/typedescriptionprovider.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cppuhelper/source/typedescriptionprovider.cxx b/cppuhelper/source/typedescriptionprovider.cxx index e0d51a18fe93..97a1788add04 100644 --- a/cppuhelper/source/typedescriptionprovider.cxx +++ b/cppuhelper/source/typedescriptionprovider.cxx @@ -259,10 +259,9 @@ struct Memory32 { } float getIso60599Binary32() const { - // Create a copy in either case, for alignment: union { unsigned char buf[4]; - float f; + float f; // assuming float is ISO 60599 binary32 } sa; #if defined OSL_LITENDIAN sa.buf[0] = byte[0]; @@ -276,7 +275,6 @@ struct Memory32 { sa.buf[3] = byte[0]; #endif return sa.f; - // assuming float is ISO 60599 binary32 } }; @@ -296,10 +294,9 @@ struct Memory64 { } double getIso60599Binary64() const { - // Create a copy in either case, for alignment: union { unsigned char buf[8]; - double d; + double d; // assuming double is ISO 60599 binary64 } sa; #if defined OSL_LITENDIAN sa.buf[0] = byte[0]; @@ -321,7 +318,6 @@ struct Memory64 { sa.buf[7] = byte[0]; #endif return sa.d; - // assuming double is ISO 60599 binary64 } }; |