dbaccess/source/ui/uno/copytablewizard.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 064ef013dc4498b6a546b153d22c5711bc29bde3
Author: Tor Lillqvist <t...@iki.fi>
Date:   Wed Nov 28 22:40:26 2012 +0200

    OUString::replaceAt() does not modify in-place
    
    Change-Id: I59ebf6dc5bc75f8ded82b19dbc736a6aae48e74b

diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx 
b/dbaccess/source/ui/uno/copytablewizard.cxx
index bc5804f..e06f91e 100644
--- a/dbaccess/source/ui/uno/copytablewizard.cxx
+++ b/dbaccess/source/ui/uno/copytablewizard.cxx
@@ -1351,8 +1351,8 @@ void CopyTableWizard::impl_copyRows_throw( const 
Reference< XResultSet >& _rxSou
                     {
                         ::rtl::OUString aMessage( String( ModuleRes( 
STR_CTW_UNSUPPORTED_COLUMN_TYPE ) ) );
 
-                        aMessage.replaceAt( aMessage.indexOfAsciiL( "$type$", 
6 ), 6, ::rtl::OUString::valueOf( aSourceColTypes[ nSourceColumn ] ) );
-                        aMessage.replaceAt( aMessage.indexOfAsciiL( "$pos$", 5 
), 5, ::rtl::OUString::valueOf( nSourceColumn ) );
+                        aMessage = aMessage.replaceAt( aMessage.indexOfAsciiL( 
"$type$", 6 ), 6, ::rtl::OUString::valueOf( aSourceColTypes[ nSourceColumn ] ) 
);
+                        aMessage = aMessage.replaceAt( aMessage.indexOfAsciiL( 
"$pos$", 5 ), 5, ::rtl::OUString::valueOf( nSourceColumn ) );
 
                         ::dbtools::throwSQLException(
                             aMessage,
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to