diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-07-22 12:33:08 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-07-22 12:33:56 +0200 |
commit | c13d130024c52598ef687a4cb189f6d77804de1d (patch) | |
tree | 1f0a462bbbdf1ce8f4d6d10f216765439817aaaf | |
parent | sc: convert SC_CLONECELL_... to typed_flags (diff) | |
download | core-c13d130024c52598ef687a4cb189f6d77804de1d.tar.gz core-c13d130024c52598ef687a4cb189f6d77804de1d.zip |
shell: loplugin:nullptr / staticanonymous / stringconstant
Change-Id: I67458301fb13601c5bf8d83c689fd861694ee460
-rw-r--r-- | shell/source/backends/desktopbe/desktopbackend.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx b/shell/source/backends/desktopbe/desktopbackend.cxx index f4a21699f094..550e87a49d34 100644 --- a/shell/source/backends/desktopbe/desktopbackend.cxx +++ b/shell/source/backends/desktopbe/desktopbackend.cxx @@ -151,7 +151,9 @@ void Default::setPropertyValue(OUString const &, css::uno::Any const &) static_cast< cppu::OWeakObject * >(this), -1); } -static OUString xdg_user_dir_lookup (const char *type) +namespace { + +OUString xdg_user_dir_lookup (const char *type) { char *config_home; char *p; @@ -166,12 +168,12 @@ static OUString xdg_user_dir_lookup (const char *type) if (!aSecurity.getHomeDir( aHomeDirURL ) ) { - osl::FileBase::getFileURLFromSystemPath(OUString("/tmp"), aDocumentsDirURL); + osl::FileBase::getFileURLFromSystemPath("/tmp", aDocumentsDirURL); return aDocumentsDirURL; } config_home = getenv ("XDG_CONFIG_HOME"); - if (config_home == NULL || config_home[0] == 0) + if (config_home == nullptr || config_home[0] == 0) { aConfigFileURL = aHomeDirURL + "/.config/user-dirs.dirs"; } @@ -250,6 +252,8 @@ static OUString xdg_user_dir_lookup (const char *type) return aHomeDirURL + "/" + OUString::createFromAscii(type); } +} // namespace + css::uno::Any Default::getPropertyValue(OUString const & PropertyName) throw ( css::beans::UnknownPropertyException, css::lang::WrappedTargetException, |