fdo#86023 - O[U]String needs a 'clear' method
Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
committed by
Stephan Bergmann
parent
f5e86ebc09
commit
d32be3ace8
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user