[Libreoffice-commits] core.git: connectivity/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sat Aug 29 06:10:16 UTC 2020
connectivity/source/drivers/postgresql/pq_connection.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 73356241dd01d4b77391918818ebcd70f08ff78e
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Aug 27 19:19:53 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Aug 29 08:09:34 2020 +0200
Use OUString::copy
...instead of OUString::getStr followed by implicit
OUString(sal_Unicode const *) ctor
Change-Id: I54e29e8adc3548a8d070fec813fea478fe3f6bf3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101574
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index 43ce0bc6ba2b..31dbe09d85d6 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -448,7 +448,7 @@ void Connection::initialize( const Sequence< Any >& aArguments )
nColon = url.indexOf( ':' , 1+ nColon );
if( nColon != -1 )
{
- o = OUStringToOString( url.getStr()+nColon+1, ConnectionSettings::encoding );
+ o = OUStringToOString( url.copy(nColon+1), ConnectionSettings::encoding );
}
}
{
More information about the Libreoffice-commits
mailing list