diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-27 19:19:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-29 08:09:34 +0200 |
commit | 73356241dd01d4b77391918818ebcd70f08ff78e (patch) | |
tree | 70bc73fe3ceb81f07500388351eeecd6a4cb6b1b /connectivity | |
parent | f144907f6582051a96d6c9d5458d299c488df019 (diff) |
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@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_connection.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); } } { |