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