summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-24 15:43:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-24 17:17:46 +0200
commit6d6fad522a2cd6a2959ea774969a86288f5a3cb7 (patch)
tree392503346dc17a8573f4a33c51155ffdb6f95cfa /idl
parentaaff73401318a7fd1b3e936555f933538b2407bc (diff)
Introduce OStringChar
...similar to OUStringChar, to be used in string concatenation expressions. And enable the corresponding loplugin:stringadd check, and fix its findings. Change-Id: I35ebb2253ba82bda6c98ae6ebd2ad4f27cf9abf9 Reviewed-on: https://gerrit.libreoffice.org/81456 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'idl')
-rw-r--r--idl/source/prj/database.cxx2
-rw-r--r--idl/source/prj/parser.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index b63205a0911b..2629c2d457cb 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -197,7 +197,7 @@ bool SvIdlDataBase::ReadIdFile( const OString& rOFileName )
|| rTok.GetChar() == '^'
|| rTok.GetChar() == '~' )
{
- throw SvParseException( "unknown operator '" + OString(rTok.GetChar()) + "'in define", rTok );
+ throw SvParseException( "unknown operator '" + OStringChar(rTok.GetChar()) + "'in define", rTok );
}
if( rTok.GetChar() != '+'
&& rTok.GetChar() != '('
diff --git a/idl/source/prj/parser.cxx b/idl/source/prj/parser.cxx
index 8bb45b10b273..be948e8ec31f 100644
--- a/idl/source/prj/parser.cxx
+++ b/idl/source/prj/parser.cxx
@@ -558,7 +558,7 @@ OString SvIdlParser::ReadString()
void SvIdlParser::Read(char cChar)
{
if( !ReadIf(cChar) )
- throw SvParseException(rInStm, "expected char '" + OString(cChar) + "'");
+ throw SvParseException(rInStm, "expected char '" + OStringChar(cChar) + "'");
}
bool SvIdlParser::ReadIf(char cChar)