[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - sw/source
LuboÅ¡ LuÅák
l.lunak at suse.cz
Tue Feb 19 01:14:28 PST 2013
sw/source/core/txtnode/ndtxt.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 586faf3589e23c10e7259e000d13f746212e8eda
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Sun Feb 17 11:19:29 2013 +0100
apparently there's no ssize_t on windows
Change-Id: Ic9aef7fe5295b7dae6f5b7ee7f28378d393cbfe4
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index c8182b6..ee1dd01 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1711,8 +1711,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(
@@ -3331,8 +3331,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(
More information about the Libreoffice-commits
mailing list