summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-26 12:49:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-26 12:49:13 +0000
commit0f5327324e4d3033bcc48ffc8f2018f6a2572b2d (patch)
treeb3f02e3f10bcfb16b22cba0edfce5fe03cc21f59
parent448980f37eb809d1dc3f8b80a14a8e335fd8bdef (diff)
this is wrong, using a pointer to a temporary
-rw-r--r--desktop/source/app/cmdlineargs.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 75deb7a4a7..4194dc61b2 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -612,8 +612,8 @@ sal_Bool CommandLineArgs::InterpretCommandLineParameter( const ::rtl::OUString&
if (bDeprecated)
{
- const sal_Char* s = rtl::OUStringToOString(aArg, RTL_TEXTENCODING_UTF8).getStr();
- fprintf(stderr, "Warning: %s is deprecated. Use -%s instead.\n", s, s);
+ rtl::OString sArg(rtl::OUStringToOString(aArg, RTL_TEXTENCODING_UTF8));
+ fprintf(stderr, "Warning: %s is deprecated. Use -%s instead.\n", sArg.getStr(), sArg.getStr());
}
return sal_True;
}