summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-20 11:32:50 +0200
committerTor Lillqvist <tml@collabora.com>2013-11-20 11:54:49 +0200
commit3f3c0da7b1c6eb0b5d9202c8307cb32e7deddcad (patch)
treea0738f701a836800561f4b5759cde4b901bd7d8d /sfx2
parent533b91f87be3147a9a6bdb2e1b20165aa4921e37 (diff)
Fix incorrect passing of a char pointer which gets converted to bool
Revealed by a warning from our Clang plug-in: "pointer 'const char *' implicitly converted to bool [loplugin]" I love --enable-werror and loplugin. Change-Id: Iece0bda4325cd1e5d1333affffef12396e5dfb7d
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/docfac.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/docfac.cxx b/sfx2/source/doc/docfac.cxx
index fcbabc4fcf01..faf99f882b29 100644
--- a/sfx2/source/doc/docfac.cxx
+++ b/sfx2/source/doc/docfac.cxx
@@ -371,7 +371,7 @@ OUString SfxObjectFactory::GetFactoryURL() const
{
OUStringBuffer aURLComposer;
aURLComposer.append("private:factory/");
- aURLComposer.append(GetShortName());
+ aURLComposer.appendAscii(GetShortName());
return aURLComposer.makeStringAndClear();
}