shell: loplugin:nullptr / staticanonymous / stringconstant
Change-Id: I67458301fb13601c5bf8d83c689fd861694ee460
This commit is contained in:
@@ -151,7 +151,9 @@ void Default::setPropertyValue(OUString const &, css::uno::Any const &)
|
|||||||
static_cast< cppu::OWeakObject * >(this), -1);
|
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 *config_home;
|
||||||
char *p;
|
char *p;
|
||||||
@@ -166,12 +168,12 @@ static OUString xdg_user_dir_lookup (const char *type)
|
|||||||
|
|
||||||
if (!aSecurity.getHomeDir( aHomeDirURL ) )
|
if (!aSecurity.getHomeDir( aHomeDirURL ) )
|
||||||
{
|
{
|
||||||
osl::FileBase::getFileURLFromSystemPath(OUString("/tmp"), aDocumentsDirURL);
|
osl::FileBase::getFileURLFromSystemPath("/tmp", aDocumentsDirURL);
|
||||||
return aDocumentsDirURL;
|
return aDocumentsDirURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
config_home = getenv ("XDG_CONFIG_HOME");
|
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";
|
aConfigFileURL = aHomeDirURL + "/.config/user-dirs.dirs";
|
||||||
}
|
}
|
||||||
@@ -250,6 +252,8 @@ static OUString xdg_user_dir_lookup (const char *type)
|
|||||||
return aHomeDirURL + "/" + OUString::createFromAscii(type);
|
return aHomeDirURL + "/" + OUString::createFromAscii(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
css::uno::Any Default::getPropertyValue(OUString const & PropertyName)
|
css::uno::Any Default::getPropertyValue(OUString const & PropertyName)
|
||||||
throw (
|
throw (
|
||||||
css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
|
css::beans::UnknownPropertyException, css::lang::WrappedTargetException,
|
||||||
|
Reference in New Issue
Block a user