summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-23 17:01:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-23 17:05:10 +0100
commit86ffa606478d18968babe809931be65463399fbb (patch)
treeec4772a2a3df014b39211dc5c2e5ffc7d7d548c2 /uui
parent64de14a0c14d5c0f47692f4a956d71bfe75614aa (diff)
Get rid of CREATEVERSIONRESMGR[_NAME]
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-authentication.cxx8
-rw-r--r--uui/source/iahndl-cookies.cxx3
-rw-r--r--uui/source/iahndl-errorhandler.cxx6
-rw-r--r--uui/source/iahndl-filter.cxx3
-rw-r--r--uui/source/iahndl-locking.cxx9
-rw-r--r--uui/source/iahndl-ssl.cxx6
-rw-r--r--uui/source/iahndl.cxx13
7 files changed, 16 insertions, 32 deletions
diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx
index 4a38c2e4b1d0..3844804a3cb1 100644
--- a/uui/source/iahndl-authentication.cxx
+++ b/uui/source/iahndl-authentication.cxx
@@ -94,7 +94,7 @@ executeLoginDialog(
if (!bCanUseSysCreds)
nFlags |= LF_NO_USESYSCREDS;
- boost::scoped_ptr< ResMgr > xManager( ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
UniString aRealm(rRealm);
boost::scoped_ptr< LoginDialog > xDialog(
new LoginDialog( pParent, nFlags, rInfo.GetServer(), &aRealm, xManager.get()));
@@ -425,8 +425,7 @@ executeMasterPasswordDialog(
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
if( nMode == task::PasswordRequestMode_PASSWORD_CREATE )
{
boost::scoped_ptr< MasterPasswordCreateDialog > xDialog(
@@ -528,8 +527,7 @@ executePasswordDialog(
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
if( nMode == task::PasswordRequestMode_PASSWORD_CREATE )
{
if (bIsSimplePasswordRequest)
diff --git a/uui/source/iahndl-cookies.cxx b/uui/source/iahndl-cookies.cxx
index a2b80101a14a..4ef37b32f495 100644
--- a/uui/source/iahndl-cookies.cxx
+++ b/uui/source/iahndl-cookies.cxx
@@ -50,8 +50,7 @@ executeCookieDialog(Window * pParent, CntHTTPCookieRequest & rRequest)
{
SolarMutexGuard aGuard;
- std::auto_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ std::auto_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
std::auto_ptr< CookiesDialog > xDialog(
new CookiesDialog(pParent, &rRequest, xManager.get()));
xDialog->Execute();
diff --git a/uui/source/iahndl-errorhandler.cxx b/uui/source/iahndl-errorhandler.cxx
index 328f671bbcdd..f3abea762322 100644
--- a/uui/source/iahndl-errorhandler.cxx
+++ b/uui/source/iahndl-errorhandler.cxx
@@ -160,11 +160,7 @@ UUIInteractionHelper::handleErrorHandlerRequest(
rtl::OUString aMessage;
{
enum Source { SOURCE_DEFAULT, SOURCE_CNT, SOURCE_SVX, SOURCE_UUI };
- static char const * const aManager[4]
- = { CREATEVERSIONRESMGR_NAME(ofa),
- CREATEVERSIONRESMGR_NAME(cnt),
- CREATEVERSIONRESMGR_NAME(svx),
- CREATEVERSIONRESMGR_NAME(uui) };
+ static char const * const aManager[4] = { "ofa", "cnt", "svx", "uui" };
static sal_uInt16 const aId[4]
= { RID_ERRHDL,
RID_CHAOS_START + 12,
diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx
index df3a512bd7c4..22550964a3e6 100644
--- a/uui/source/iahndl-filter.cxx
+++ b/uui/source/iahndl-filter.cxx
@@ -65,8 +65,7 @@ executeFilterDialog(
{
SolarMutexGuard aGuard;
- std::auto_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ std::auto_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
std::auto_ptr< uui::FilterDialog > xDialog(
new uui::FilterDialog(pParent, xManager.get()));
diff --git a/uui/source/iahndl-locking.cxx b/uui/source/iahndl-locking.cxx
index e03e21714481..5ed5c01ae062 100644
--- a/uui/source/iahndl-locking.cxx
+++ b/uui/source/iahndl-locking.cxx
@@ -84,8 +84,7 @@ handleLockedDocumentRequest_(
try
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
if (!xManager.get())
return;
@@ -175,8 +174,7 @@ handleChangedByOthersRequest_(
try
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
if (!xManager.get())
return;
@@ -214,8 +212,7 @@ handleLockFileIgnoreRequest_(
try
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
if (!xManager.get())
return;
diff --git a/uui/source/iahndl-ssl.cxx b/uui/source/iahndl-ssl.cxx
index 48d61b12b645..5bd383203853 100644
--- a/uui/source/iahndl-ssl.cxx
+++ b/uui/source/iahndl-ssl.cxx
@@ -155,8 +155,7 @@ executeUnknownAuthDialog(
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
boost::scoped_ptr< UnknownAuthDialog > xDialog(
new UnknownAuthDialog( pParent,
rXCert,
@@ -204,8 +203,7 @@ executeSSLWarnDialog(
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
boost::scoped_ptr< SSLWarnDialog > xDialog(
new SSLWarnDialog( pParent,
rXCert,
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 345fb489947d..cb60a488c36d 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -1204,7 +1204,7 @@ NameClashResolveDialogResult executeSimpleNameClashResolveDialog( Window *pParen
rtl::OUString & rProposedNewName,
bool bAllowOverwrite )
{
- boost::scoped_ptr< ResMgr > xManager( ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( uui ) ) );
+ boost::scoped_ptr< ResMgr > xManager( ResMgr::CreateResMgr( "uui" ) );
if ( !xManager.get() )
return ABORT;
@@ -1313,7 +1313,7 @@ UUIInteractionHelper::handleGenericErrorRequest(
ErrorHandler::GetErrorString( nErrorCode, aErrorString );
boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( uui ) ) );
+ ResMgr::CreateResMgr( "uui" ) );
rtl::OUString aTitle( utl::ConfigManager::getProductName() );
::rtl::OUString aErrTitle
@@ -1355,8 +1355,7 @@ UUIInteractionHelper::handleMacroConfirmRequest(
bool bApprove = false;
- boost::scoped_ptr< ResMgr > pResMgr(
- ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( uui ) ) );
+ boost::scoped_ptr< ResMgr > pResMgr( ResMgr::CreateResMgr( "uui" ) );
if ( pResMgr.get() )
{
bool bShowSignatures = aSignInfo.getLength() > 0;
@@ -1419,8 +1418,7 @@ UUIInteractionHelper::handleFutureDocumentVersionUpdateRequest(
if ( !s_bDeferredToNextSession )
{
- boost::scoped_ptr< ResMgr > pResMgr(
- ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( uui ) ) );
+ boost::scoped_ptr< ResMgr > pResMgr( ResMgr::CreateResMgr( "uui" ) );
if ( pResMgr.get() )
{
::uui::NewerVersionWarningDialog aDialog(
@@ -1490,8 +1488,7 @@ UUIInteractionHelper::handleBrokenPackageRequest(
::rtl::OUString aMessage;
{
SolarMutexGuard aGuard;
- boost::scoped_ptr< ResMgr > xManager(
- ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(uui)));
+ boost::scoped_ptr< ResMgr > xManager(ResMgr::CreateResMgr("uui"));
if (!xManager.get())
return;