summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_tools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_tools.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx
index 17428fd96fe2..3f8e85fb7c74 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.cxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.cxx
@@ -552,7 +552,7 @@ void splitConcatenatedIdentifier( const OUString & source, OUString *first, OUSt
switch (vec.size())
{
case 1:
- *first = OUString();
+ first->clear();
*second = OStringToOUString( vec[0], RTL_TEXTENCODING_UTF8 );
break;
case 3:
@@ -808,7 +808,7 @@ OString extractSingleTableFromSelect( const OStringVector &vec )
RTL_CONSTASCII_STRINGPARAM( "(" ) ) == 0 )
{
// whoops, it is a function
- ret = OString();
+ ret.clear();
}
else
{
@@ -828,7 +828,7 @@ OString extractSingleTableFromSelect( const OStringVector &vec )
RTL_CONSTASCII_STRINGPARAM( "," ) ) == 0 )
{
// whoops, multiple tables are used
- ret = OString();
+ ret.clear();
}
else
{
@@ -842,7 +842,7 @@ OString extractSingleTableFromSelect( const OStringVector &vec )
strlen(forbiddenKeywords[i]) ) )
{
// whoops, it is a join
- ret = OString();
+ ret.clear();
}
}
}