summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/options.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index 1b74a2367578..2418e13afdf0 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -170,9 +170,8 @@ bool Options::badOption(char const * reason, std::string const & rArg)
{
if (reason != nullptr)
{
- OStringBuffer message;
- message.append(reason); message.append(" option '"); message.append(rArg.c_str()); message.append("'");
- throw IllegalArgument(message.makeStringAndClear());
+ OString message = OString::Concat(reason) + " option '" + rArg.c_str() + "'";
+ throw IllegalArgument(message);
}
return false;
}