[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Mon May 19 14:26:46 PDT 2014


 sw/source/filter/ww8/writerwordglue.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9cf5e4c2500fc5d579896ea08802aba5ca671c96
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon May 19 23:26:22 2014 +0200

    -Werror,-Wunused-result
    
    Change-Id: Iaa06237d3e554d3a3d9c87f6c5dba715343afa25

diff --git a/sw/source/filter/ww8/writerwordglue.cxx b/sw/source/filter/ww8/writerwordglue.cxx
index f4817b4..56dcc9e 100644
--- a/sw/source/filter/ww8/writerwordglue.cxx
+++ b/sw/source/filter/ww8/writerwordglue.cxx
@@ -812,7 +812,7 @@ namespace sw
                     {
                         const sal_Int32 nFindLen = rFind.getLength();
                         const sal_Int32 nDiff = rReplace.getLength() - nFindLen;
-                        rParams.replaceAt( nI, nFindLen, rReplace);
+                        rParams = rParams.replaceAt( nI, nFindLen, rReplace);
                         nI += nFindLen + nDiff - 1;
                         nLen += nDiff;
                         bReplaced = true;


More information about the Libreoffice-commits mailing list