diff options
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/options.cxx | 8 | ||||
-rw-r--r-- | idlc/source/parser.y | 7 |
2 files changed, 4 insertions, 11 deletions
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx index c3a19a365267..d9b0003a60cb 100644 --- a/idlc/source/options.cxx +++ b/idlc/source/options.cxx @@ -274,9 +274,7 @@ bool Options::initOptions(std::vector< std::string > & rArgs) if (m_options.count("-I") > 0) { // append param. - OStringBuffer buffer(m_options["-I"]); - buffer.append(' '); buffer.append(param); - param = buffer.makeStringAndClear(); + param = m_options["-I"] + " " + param; } m_options["-I"] = param; break; @@ -291,9 +289,7 @@ bool Options::initOptions(std::vector< std::string > & rArgs) param += OString((*first).c_str(), (*first).size()); if (m_options.count("-D") > 0) { - OStringBuffer buffer(m_options["-D"]); - buffer.append(' '); buffer.append(param); - param = buffer.makeStringAndClear(); + param = m_options["-D"] + " " + param; } m_options["-D"] = param; break; diff --git a/idlc/source/parser.y b/idlc/source/parser.y index 083153c1827a..9c055d920a33 100644 --- a/idlc/source/parser.y +++ b/idlc/source/parser.y @@ -48,7 +48,7 @@ #include "attributeexceptions.hxx" -#include <rtl/strbuf.hxx> +#include <rtl/string.hxx> #include <osl/diagnose.h> #include <algorithm> @@ -75,10 +75,7 @@ static void checkIdentifier(OString const * id) if ( (id->pData->buffer[0] >= 97 && id->pData->buffer[0] <= 122) || id->pData->buffer[0] == '_') { if (check == 1) { - OStringBuffer msg(25 + id->getLength()); - msg.append("mismatched identifier '"); - msg.append(*id); - msg.append("'"); + OString msg = "mismatched identifier '" + *id + "'"; ErrorHandler::syntaxError(idlc()->getParseState(), idlc()->getLineNumber(), msg.getStr()); |