diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-06-28 17:03:53 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-06-28 22:53:27 +0200 |
commit | 2cb5e2256c607acd766e8693ea22b62459d93cbc (patch) | |
tree | 7cb1034c91ca7535003518ff9a82b08606191f56 /lotuswordpro/source | |
parent | aa80eaeeabd9424f7e09227940c2f8b6c817f07f (diff) |
Simplify solar.h a bit
Use std::copy / std::reverse_copy for double serialization. Also
remove __cplusplus conditions, because the header is not included
in any C files. And simplify the functions uses, where casts were
unneeded.
Change-Id: I1d8375e601851231fdffcf52e3f3e3bdcbcbde7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169706
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpobjstrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpobjstrm.cxx b/lotuswordpro/source/filter/lwpobjstrm.cxx index 728e3a71f8f3..06e579c3843d 100644 --- a/lotuswordpro/source/filter/lwpobjstrm.cxx +++ b/lotuswordpro/source/filter/lwpobjstrm.cxx @@ -222,7 +222,7 @@ sal_Int16 LwpObjectStream::QuickReadInt16() SVBT16 aValue = { 0 }; QuickRead(aValue, sizeof(aValue)); - return static_cast<sal_Int16>(SVBT16ToUInt16(aValue)); + return SVBT16ToInt16(aValue); } /** * @descr Quick read sal_uInt8 |