[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sw/source

Stephan Bergmann sbergman at redhat.com
Tue Jan 6 15:05:45 PST 2015


 sw/source/filter/ww8/ww8scan.cxx |    2 +-
 sw/source/filter/ww8/ww8scan.hxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d7a507ab452bc84aeda00cc4d9bb7dbefde74339
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Dec 30 21:30:05 2014 +0100

    -Werror,-Wconstant-conversion
    
    "implicit conversion from 'long' to 'sal_uInt16' (aka 'unsigned short') changes
    value from 9223372036854775807 to 65535," and at least the call to getHandle for
    the long nHand argument of SwFltControlStack::SetAttr in
    SwWW8ImplReader::Read_AtnBook makes it look like it better return long?
    
    Change-Id: I594ac3ee60a72c0eb2e13f802371ff1e8ade7676
    (cherry picked from commit cf39dc339f4ba2a6fb8ce572e437fe610754eb00)
    Signed-off-by: Eike Rathke <erack at redhat.com>

diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index af36b28..bef64ec 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -4346,7 +4346,7 @@ void WW8PLCFx_AtnBook::advance()
     }
 }
 
-sal_uInt16 WW8PLCFx_AtnBook::getHandle() const
+long WW8PLCFx_AtnBook::getHandle() const
 {
     if (!m_pBook[0] || !m_pBook[1])
         return LONG_MAX;
diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx
index a3bdf78..ed4d496 100644
--- a/sw/source/filter/ww8/ww8scan.hxx
+++ b/sw/source/filter/ww8/ww8scan.hxx
@@ -796,7 +796,7 @@ public:
     virtual void advance() SAL_OVERRIDE;
 
     /// Handle is the unique ID of an annotation mark.
-    sal_uInt16 getHandle() const;
+    long getHandle() const;
     bool getIsEnd() const;
 };
 


More information about the Libreoffice-commits mailing list