[Libreoffice-commits] core.git: sw/source
Tor Lillqvist
tml at collabora.com
Wed Oct 2 01:00:10 PDT 2013
sw/source/ui/uiview/srcview.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1a6a2c8d1dd01c9c2a334db799689cdce8606ce1
Author: Tor Lillqvist <tml at collabora.com>
Date: Wed Oct 2 10:56:49 2013 +0300
OUString::replaceAt() does not replace in-place
Showed up as a warning: "ignoring return value of function declared with
warn_unused_result attribute". Please, use --enable-werror.
Change-Id: I783db186f0525df528174276958cce04ab9d44e8
diff --git a/sw/source/ui/uiview/srcview.cxx b/sw/source/ui/uiview/srcview.cxx
index cefbd34..ae9a106 100644
--- a/sw/source/ui/uiview/srcview.cxx
+++ b/sw/source/ui/uiview/srcview.cxx
@@ -207,7 +207,7 @@ static OUString lcl_ConvertTabsToSpaces( OUString sLine )
}
// Not 4 blanks, but on 4th TabPos:
const sal_Int32 nPadLen = 4 - (nPos % 4);
- sLine.replaceAt(nPos, 1, OUString(aPadSpaces, nPadLen));
+ sLine = sLine.replaceAt(nPos, 1, OUString(aPadSpaces, nPadLen));
nPos += nPadLen;
}
}
More information about the Libreoffice-commits
mailing list