summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-30 21:30:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-30 21:30:05 +0100
commitcf39dc339f4ba2a6fb8ce572e437fe610754eb00 (patch)
tree26d33422926ce20723074b0163834463dd4214a5
parent54bd92d7fce1ec4d8d779751168c698cc44a33ba (diff)
-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
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
-rw-r--r--sw/source/filter/ww8/ww8scan.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 3c5675a92551..e68818cf3ed2 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 3c363362429b..28b941990403 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;
};