summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlc.cxx2
-rw-r--r--idlc/source/options.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/idlc/source/idlc.cxx b/idlc/source/idlc.cxx
index 5984ca759448..c1d09b4c1b2e 100644
--- a/idlc/source/idlc.cxx
+++ b/idlc/source/idlc.cxx
@@ -273,8 +273,8 @@ OUString Idlc::processDocumentation()
static void lcl_writeString(::osl::File & rFile, ::osl::FileBase::RC & o_rRC,
OString const& rString)
{
- sal_uInt64 nWritten(0);
if (::osl::FileBase::E_None == o_rRC) {
+ sal_uInt64 nWritten(0);
o_rRC = rFile.write(rString.getStr(), rString.getLength(), nWritten);
if (static_cast<sal_uInt64>(rString.getLength()) != nWritten) {
o_rRC = ::osl::FileBase::E_INVAL; //?
diff --git a/idlc/source/options.cxx b/idlc/source/options.cxx
index 0ab0a9cc32d2..1b74a2367578 100644
--- a/idlc/source/options.cxx
+++ b/idlc/source/options.cxx
@@ -168,9 +168,9 @@ bool Options::checkCommandFile (std::vector< std::string > & rArgs, char const *
bool Options::badOption(char const * reason, std::string const & rArg)
{
- OStringBuffer message;
if (reason != nullptr)
{
+ OStringBuffer message;
message.append(reason); message.append(" option '"); message.append(rArg.c_str()); message.append("'");
throw IllegalArgument(message.makeStringAndClear());
}