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

Tor Lillqvist tml at iki.fi
Tue Feb 26 05:23:58 PST 2013


 dbaccess/source/ext/macromigration/migrationlog.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 810437181bbca4f273deac7a7bfb61fced4ef4e0
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Feb 26 15:23:29 2013 +0200

    WaE: ignoring return value
    
    Change-Id: Ib445acdb01808cf5d05cd29973b568956d717e61

diff --git a/dbaccess/source/ext/macromigration/migrationlog.cxx b/dbaccess/source/ext/macromigration/migrationlog.cxx
index 977547c1..229ee2f 100644
--- a/dbaccess/source/ext/macromigration/migrationlog.cxx
+++ b/dbaccess/source/ext/macromigration/migrationlog.cxx
@@ -433,7 +433,7 @@ namespace dbmm
         if ( !m_pData->sBackupLocation.isEmpty() )
         {
             OUString sBackedUp( MacroMigrationResId( STR_SAVED_COPY_TO ) );
-            sBackedUp.replaceFirst( "$location$", m_pData->sBackupLocation );
+            sBackedUp = sBackedUp.replaceFirst( "$location$", m_pData->sBackupLocation );
 
             aBuffer.appendAscii( "=== " );
             aBuffer.append     ( OUString( MacroMigrationResId( STR_DATABASE_DOCUMENT ) ) );
@@ -462,7 +462,7 @@ namespace dbmm
                     continue;
 
                 OUString sDocTitle( MacroMigrationResId( rDoc.eType == eForm ? STR_FORM : STR_REPORT ) );
-                sDocTitle.replaceFirst( "$name$", rDoc.sName );
+                sDocTitle = sDocTitle.replaceFirst( "$name$", rDoc.sName );
 
                 aBuffer.appendAscii( "=== " );
                 aBuffer.append     ( sDocTitle );
@@ -474,9 +474,9 @@ namespace dbmm
                     )
                 {
                     OUString sMovedLib( sMovedLibTemplate );
-                    sMovedLib.replaceFirst( "$type$", getScriptTypeDisplayName( lib->eType ) );
-                    sMovedLib.replaceFirst( "$old$", lib->sOldName );
-                    sMovedLib.replaceFirst( "$new$", lib->sNewName );
+                    sMovedLib = sMovedLib.replaceFirst( "$type$", getScriptTypeDisplayName( lib->eType ) );
+                    sMovedLib = sMovedLib.replaceFirst( "$old$", lib->sOldName );
+                    sMovedLib = sMovedLib.replaceFirst( "$new$", lib->sNewName );
 
                     aBuffer.append( sMovedLib );
                     aBuffer.append( sal_Unicode( '\n' ) );


More information about the Libreoffice-commits mailing list