diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-02-17 11:19:29 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-02-17 11:20:14 +0100 |
commit | 3f7ead7ffee808f99bf9cf76bbd247af04707242 (patch) | |
tree | da8619736efd422bff1bdec40ca421f05673db1f | |
parent | d7f563ba35f9a6b565224b9076dbb238b423e225 (diff) |
apparently there's no ssize_t on windows
Change-Id: Ic9aef7fe5295b7dae6f5b7ee7f28378d393cbfe4
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 4bc16afdbbf8..c5ffa22ebdf8 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1710,8 +1710,8 @@ OUString SwTxtNode::InsertText( const XubString & rStr, const SwIndex & rIdx, xub_StrLen aPos = rIdx.GetIndex(); xub_StrLen nLen = m_Text.Len() - aPos; - ssize_t const nOverflow(static_cast<ssize_t>(m_Text.Len()) - + static_cast<ssize_t>(rStr.Len()) - TXTNODE_MAX); + long const nOverflow(static_cast<long>(m_Text.Len()) + + static_cast<long>(rStr.Len()) - TXTNODE_MAX); SAL_WARN_IF(nOverflow > 0, "sw.core", "SwTxtNode::InsertText: node text with insertion > TXTNODE_MAX."); OUString const sInserted( @@ -3328,8 +3328,8 @@ void SwTxtNode::ReplaceText( const SwIndex& rStart, const xub_StrLen nDelLen, rStart.GetIndex() + nDelLen <= m_Text.Len(), "SwTxtNode::ReplaceText: index out of bounds" ); - ssize_t const nOverflow(static_cast<ssize_t>(m_Text.Len()) - + static_cast<ssize_t>(rStr.Len()) - nDelLen - TXTNODE_MAX); + long const nOverflow(static_cast<long>(m_Text.Len()) + + static_cast<long>(rStr.Len()) - nDelLen - TXTNODE_MAX); SAL_WARN_IF(nOverflow > 0, "sw.core", "SwTxtNode::ReplaceText: node text with insertion > TXTNODE_MAX."); OUString const sInserted( |