Kaydet (Commit) 1322c224 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

desktop: Use appropriate OUString functions on string constants

Change-Id: Ie35b3ab2695d9bbfc221b63b6913e21386344a33
üst 17fe6b54
......@@ -1073,7 +1073,7 @@ void ExtensionBox_Impl::updateEntry( const uno::Reference< deployment::XPackage
if ( eState == AMBIGUOUS )
(*iIndex)->m_sErrorText = DialogHelper::getResourceString( RID_STR_ERROR_UNKNOWN_STATUS );
else if ( ! (*iIndex)->m_bMissingLic )
(*iIndex)->m_sErrorText = "";
(*iIndex)->m_sErrorText.clear();
if ( IsReallyVisible() )
Invalidate();
......
......@@ -242,7 +242,7 @@ void ServiceImpl::startExecuteModal(
Application::SetSettings( as );
Application::SetDisplayName(
utl::ConfigManager::getProductName() +
OUString(" ") +
" " +
utl::ConfigManager::getProductVersion());
ExtensionCmdQueue::syncRepositories( m_xComponentContext );
}
......
......@@ -41,7 +41,6 @@
#include "dp_misc_api.hxx"
#define LOCKFILE_SUFFIX OUString( "/.lock" )
#define LOCKFILE_GROUP OString( "Lockdata" )
#define LOCKFILE_USERKEY OString( "User" )
#define LOCKFILE_HOSTKEY OString( "Host" )
......
......@@ -79,7 +79,7 @@ namespace desktop {
// build the file-url to use for the lock
OUString aUserPath;
utl::Bootstrap::locateUserInstallation( aUserPath );
m_aLockname = aUserPath + LOCKFILE_SUFFIX;
m_aLockname = aUserPath + "/.lock";
// generate ID
const int nIdBytes = 16;
......
......@@ -511,7 +511,7 @@ BackendImpl::BackendImpl(
m_xDynComponentTypeInfo( new Package::TypeInfo(
"application/vnd.sun.star.uno-component;type=native;platform=" +
getPlatformString(),
OUString("*") + OUString(SAL_DLLEXTENSION),
"*" SAL_DLLEXTENSION,
getResourceString(RID_STR_DYN_COMPONENT),
RID_IMG_COMPONENT) ),
m_xJavaComponentTypeInfo( new Package::TypeInfo(
......
......@@ -250,7 +250,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString dialogURL( makeURL( url, "dialog.xlb" ) );
if (! create_ucb_content(
0, dialogURL, xCmdEnv, false /* no throw */ )) {
dialogURL = "";
dialogURL.clear();
}
if (subType.equalsIgnoreAsciiCase("vnd.sun.star.basic-library"))
......@@ -258,7 +258,7 @@ Reference<deployment::XPackage> BackendImpl::bindPackage_(
OUString scriptURL( makeURL( url, "script.xlb"));
if (! create_ucb_content(
0, scriptURL, xCmdEnv, false /* no throw */ )) {
scriptURL = "";
scriptURL.clear();
}
return new PackageImpl(
......
......@@ -1238,11 +1238,11 @@ void MigrationImpl::mergeOldToNewVersion(const uno::Reference< ui::XUIConfigurat
{
uno::Sequence< beans::PropertyValue > aPropSeq(3);
aPropSeq[0].Name = OUString(ITEM_DESCRIPTOR_COMMANDURL);
aPropSeq[0].Name = ITEM_DESCRIPTOR_COMMANDURL;
aPropSeq[0].Value <<= it->m_sCommandURL;
aPropSeq[1].Name = OUString(ITEM_DESCRIPTOR_LABEL);
aPropSeq[1].Name = ITEM_DESCRIPTOR_LABEL;
aPropSeq[1].Value <<= retrieveLabelFromCommand(it->m_sCommandURL, sModuleIdentifier);
aPropSeq[2].Name = OUString(ITEM_DESCRIPTOR_CONTAINER);
aPropSeq[2].Name = ITEM_DESCRIPTOR_CONTAINER;
aPropSeq[2].Value <<= it->m_xPopupMenu;
if (it->m_sPrevSibling.isEmpty())
......
......@@ -301,8 +301,8 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
}
else if (option_shared) {
dp_misc::writeConsoleError(
OUString("WARNING: explicit context given! ") +
"Ignoring option " + toString( info_shared ) + "!\n" );
"WARNING: explicit context given! Ignoring option " +
toString( info_shared ) + "!\n" );
}
}
......@@ -425,7 +425,7 @@ extern "C" DESKTOP_DLLPUBLIC int unopkg_main()
vec_packages.size(), false);
dp_misc::writeConsole(
OUString("All deployed ") + repository + " extensions:\n\n");
"All deployed " + repository + " extensions:\n\n");
}
else
{
......
......@@ -270,7 +270,7 @@ void CommandEnvironmentImpl::handle(
{
OUString sMsg(ResId(RID_STR_UNSUPPORTED_PLATFORM, *dp_gui::DeploymentGuiResMgr::get()).toString());
sMsg = sMsg.replaceAll("%Name", platExc.package->getDisplayName());
dp_misc::writeConsole(OUString("\n") + sMsg + "\n\n");
dp_misc::writeConsole("\n" + sMsg + "\n\n");
approve = true;
}
else {
......@@ -290,7 +290,7 @@ void CommandEnvironmentImpl::handle(
if (abort && m_option_verbose && !bLicenseException)
{
OUString msg = ::comphelper::anyToString(request);
dp_misc::writeConsoleError(OUString("\nERROR: ") + msg + "\n");
dp_misc::writeConsoleError("\nERROR: " + msg + "\n");
}
// select:
......
......@@ -152,7 +152,7 @@ bool readArgument(
{
OSL_ASSERT( pValue != 0 );
osl_getCommandArg( *pIndex, &pValue->pData );
dp_misc::TRACE(OUString( __FILE__) + ": argument value: "
dp_misc::TRACE(__FILE__ ": argument value: "
+ *pValue + "\n");
++(*pIndex);
return true;
......
......@@ -370,7 +370,7 @@ void SplashScreen::loadConfig()
// Determine full screen splash mode
_bFullScreenSplash = (( !sFullScreenSplash.isEmpty() ) &&
( !sFullScreenSplash.equals( "0" )));
( sFullScreenSplash != "0" ));
// Try to retrieve the relative values for the progress bar. The current
// schema uses the screen ratio to retrieve the associated values.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment