basic/source/runtime/basrdll.cxx | 2 +- basic/source/sbx/sbxscan.cxx | 2 +- chart2/source/tools/RessourceManager.cxx | 2 +- fpicker/source/office/iodlg.cxx | 2 +- fpicker/source/office/iodlgimp.cxx | 2 +- fpicker/source/unx/kde4/KDE4FilePicker.cxx | 2 +- fpicker/source/unx/kde_unx/UnxFilePicker.cxx | 2 +- salhelper/source/gcc3.map | 10 ++++------ sccomp/source/solver/solver.cxx | 2 +- sfx2/source/appl/shutdowniconunx.cxx | 2 +- svl/source/misc/getstringresource.cxx | 2 +- svtools/source/misc/ehdl.cxx | 6 +++--- svtools/source/misc/svtdata.cxx | 2 +- svx/source/form/datanavi.cxx | 2 +- sysui/source/win32/misc/resourceprovider.cxx | 4 +--- tools/inc/tools/resmgr.hxx | 3 --- ucbhelper/workben/ucbexplorer/ucbexplorer.cxx | 11 +++++------ uui/source/iahndl-authentication.cxx | 8 +++----- uui/source/iahndl-cookies.cxx | 3 +-- uui/source/iahndl-errorhandler.cxx | 6 +----- uui/source/iahndl-filter.cxx | 3 +-- uui/source/iahndl-locking.cxx | 9 +++------ uui/source/iahndl-ssl.cxx | 6 ++---- uui/source/iahndl.cxx | 13 +++++-------- vcl/unx/generic/printer/ppdparser.cxx | 4 ++-- 25 files changed, 43 insertions(+), 67 deletions(-)
New commits: commit 86ffa606478d18968babe809931be65463399fbb Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Feb 23 17:01:23 2012 +0100 Get rid of CREATEVERSIONRESMGR[_NAME] diff --git a/basic/source/runtime/basrdll.cxx b/basic/source/runtime/basrdll.cxx index e792c03..24add65 100644 --- a/basic/source/runtime/basrdll.cxx +++ b/basic/source/runtime/basrdll.cxx @@ -46,7 +46,7 @@ BasicDLL::BasicDLL() { BASIC_DLL() = this; ::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale(); - pBasResMgr = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(sb), aLocale ); + pBasResMgr = ResMgr::CreateResMgr("sb", aLocale ); bDebugMode = sal_False; bBreakEnabled = sal_True; } diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index d938763..18bb46d 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -623,7 +623,7 @@ ResMgr* implGetResMgr( void ) if( !pResMgr ) { ::com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale(); - pResMgr = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(sb), aLocale ); + pResMgr = ResMgr::CreateResMgr("sb", aLocale ); } return pResMgr; } diff --git a/chart2/source/tools/RessourceManager.cxx b/chart2/source/tools/RessourceManager.cxx index adaa80d..b485f8a 100644 --- a/chart2/source/tools/RessourceManager.cxx +++ b/chart2/source/tools/RessourceManager.cxx @@ -40,7 +40,7 @@ ResMgr & RessourceManager::getRessourceManager() { // not threadsafe if( ! m_pRessourceManager ) - m_pRessourceManager = CREATEVERSIONRESMGR( chartcontroller ); + m_pRessourceManager = ResMgr::CreateResMgr("chartcontroller"); OSL_ASSERT( m_pRessourceManager ); return *m_pRessourceManager; } diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 014388f..4e801ca 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -428,7 +428,7 @@ namespace { ResMgr * operator ()() { - return ResMgr::CreateResMgr (CREATEVERSIONRESMGR_NAME(fps_office)); + return ResMgr::CreateResMgr ("fps_office"); } static ResMgr * getOrCreate() diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx index 2c7b4c1..73dcbcc 100644 --- a/fpicker/source/office/iodlgimp.cxx +++ b/fpicker/source/office/iodlgimp.cxx @@ -98,7 +98,7 @@ namespace { ResMgr * operator ()() { - return ResMgr::CreateResMgr (CREATEVERSIONRESMGR_NAME(svs)); + return ResMgr::CreateResMgr ("svs"); } static ResMgr * getOrCreate() { diff --git a/fpicker/source/unx/kde4/KDE4FilePicker.cxx b/fpicker/source/unx/kde4/KDE4FilePicker.cxx index 69be3b1..269deee 100644 --- a/fpicker/source/unx/kde4/KDE4FilePicker.cxx +++ b/fpicker/source/unx/kde4/KDE4FilePicker.cxx @@ -141,7 +141,7 @@ KDE4FilePicker::KDE4FilePicker( const uno::Reference<lang::XMultiServiceFactory> lang::XEventListener, lang::XServiceInfo>( _helperMutex ), m_xServiceMgr( xServiceMgr ), - _resMgr( CREATEVERSIONRESMGR( fps_office ) ) + _resMgr( ResMgr::CreateResMgr("fps_office") ) { _extraControls = new QWidget(); _layout = new QGridLayout(_extraControls); diff --git a/fpicker/source/unx/kde_unx/UnxFilePicker.cxx b/fpicker/source/unx/kde_unx/UnxFilePicker.cxx index c2756ee..74dbd8d 100644 --- a/fpicker/source/unx/kde_unx/UnxFilePicker.cxx +++ b/fpicker/source/unx/kde_unx/UnxFilePicker.cxx @@ -107,7 +107,7 @@ UnxFilePicker::UnxFilePicker( const uno::Reference<lang::XMultiServiceFactory>& m_nFilePickerRead( -1 ), m_pNotifyThread( NULL ), m_pCommandThread( NULL ), - m_pResMgr( CREATEVERSIONRESMGR( fps_office ) ) + m_pResMgr( ResMgr::CreateResMgr("fps_office") ) { } diff --git a/sccomp/source/solver/solver.cxx b/sccomp/source/solver/solver.cxx index a529f3a..1ed8df0 100644 --- a/sccomp/source/solver/solver.cxx +++ b/sccomp/source/solver/solver.cxx @@ -74,7 +74,7 @@ static ResMgr* pSolverResMgr = NULL; OUString lcl_GetResourceString( sal_uInt32 nId ) { if (!pSolverResMgr) - pSolverResMgr = CREATEVERSIONRESMGR( solver ); + pSolverResMgr = ResMgr::CreateResMgr("solver"); return String( ResId( nId, *pSolverResMgr ) ); } diff --git a/sfx2/source/appl/shutdowniconunx.cxx b/sfx2/source/appl/shutdowniconunx.cxx index 0edafdb..b249544 100644 --- a/sfx2/source/appl/shutdowniconunx.cxx +++ b/sfx2/source/appl/shutdowniconunx.cxx @@ -356,7 +356,7 @@ void SAL_DLLPUBLIC_EXPORT plugin_init_sys_tray() pShutdownIcon->GetResString( STR_QUICKSTART_TIP ), RTL_TEXTENCODING_UTF8 ); - pVCLResMgr = CREATEVERSIONRESMGR( vcl ); + pVCLResMgr = ResMgr::CreateResMgr("vcl"); GdkPixbuf *pPixbuf = ResIdToPixbuf( SV_ICON_ID_OFFICE ); pTrayIcon = gtk_status_icon_new_from_pixbuf(pPixbuf); diff --git a/svl/source/misc/getstringresource.cxx b/svl/source/misc/getstringresource.cxx index aa62fe5..b567e8e 100644 --- a/svl/source/misc/getstringresource.cxx +++ b/svl/source/misc/getstringresource.cxx @@ -77,7 +77,7 @@ SimpleResMgr * ResMgrMap::get(css::lang::Locale const & locale) { Map::iterator i(map_.find(code)); if (i == map_.end()) { boost::scoped_ptr< SimpleResMgr > mgr( - new SimpleResMgr(CREATEVERSIONRESMGR_NAME(svl), locale)); + new SimpleResMgr("svl", locale)); i = map_.insert(Map::value_type(code, mgr.get())).first; mgr.reset(); } diff --git a/svtools/source/misc/ehdl.cxx b/svtools/source/misc/ehdl.cxx index 5d16ec9..8272e0d 100644 --- a/svtools/source/misc/ehdl.cxx +++ b/svtools/source/misc/ehdl.cxx @@ -161,7 +161,7 @@ SfxErrorHandler::SfxErrorHandler(sal_uInt16 nIdP, sal_uLong lStartP, sal_uLong l if( ! pMgr ) { com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale(); - pFreeMgr = pMgr = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(ofa), aLocale ); + pFreeMgr = pMgr = ResMgr::CreateResMgr("ofa", aLocale ); } } @@ -311,7 +311,7 @@ sal_Bool SfxErrorHandler::GetClassString(sal_uLong lClassId, String &rStr) const { sal_Bool bRet = sal_False; com::sun::star::lang::Locale aLocale( Application::GetSettings().GetUILocale() ); - ResMgr* pResMgr = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(ofa), aLocale ); + ResMgr* pResMgr = ResMgr::CreateResMgr("ofa", aLocale ); if( pResMgr ) { ResId aId(RID_ERRHDL, *pResMgr ); @@ -441,7 +441,7 @@ sal_Bool SfxErrorContext::GetString(sal_uLong nErrId, String &rStr) if( ! pMgr ) { com::sun::star::lang::Locale aLocale = Application::GetSettings().GetUILocale(); - pFreeMgr = pMgr = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(ofa), aLocale ); + pFreeMgr = pMgr = ResMgr::CreateResMgr("ofa", aLocale ); } if( pMgr ) { diff --git a/svtools/source/misc/svtdata.cxx b/svtools/source/misc/svtdata.cxx index 6debd9c..66489f1 100644 --- a/svtools/source/misc/svtdata.cxx +++ b/svtools/source/misc/svtdata.cxx @@ -49,7 +49,7 @@ ResMgr * ImpSvtData::GetResMgr(const ::com::sun::star::lang::Locale aLocale) { if (!pResMgr) { - pResMgr = ResMgr::CreateResMgr(CREATEVERSIONRESMGR_NAME(svt), aLocale ); + pResMgr = ResMgr::CreateResMgr("svt", aLocale ); } return pResMgr; } diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index 0e0054c..38543c6 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -3675,7 +3675,7 @@ namespace svxform m_aFilePickerBtn.SetClickHdl( LINK( this, AddInstanceDialog, FilePickerHdl ) ); // load the filter name from fps_office resource - m_sAllFilterName = String( ResId( STR_FILTERNAME_ALL, *CREATEVERSIONRESMGR(fps_office) ) ); + m_sAllFilterName = String( ResId( STR_FILTERNAME_ALL, *ResMgr::CreateResMgr("fps_office") ) ); } AddInstanceDialog::~AddInstanceDialog() diff --git a/sysui/source/win32/misc/resourceprovider.cxx b/sysui/source/win32/misc/resourceprovider.cxx index dc95c6d..8a8de8d 100644 --- a/sysui/source/win32/misc/resourceprovider.cxx +++ b/sysui/source/win32/misc/resourceprovider.cxx @@ -51,8 +51,6 @@ using namespace ::com::sun::star::ui::dialogs::CommonFilePickerElementIds; // //------------------------------------------------------------ -#define RES_NAME svt - // because the label of a listbox is // a control itself (static text) we // have defined a control id for this @@ -128,7 +126,7 @@ public: CResourceProvider_Impl( ) { - m_ResMgr = CREATEVERSIONRESMGR( RES_NAME ); + m_ResMgr = ResMgr::CreateResMgr("svt"); } //------------------------------------- diff --git a/tools/inc/tools/resmgr.hxx b/tools/inc/tools/resmgr.hxx index 8000e5a..dafbc35 100644 --- a/tools/inc/tools/resmgr.hxx +++ b/tools/inc/tools/resmgr.hxx @@ -34,9 +34,6 @@ #include <tools/resid.hxx> #include <com/sun/star/lang/Locale.hpp> -#define CREATEVERSIONRESMGR_NAME( Name ) #Name -#define CREATEVERSIONRESMGR( Name ) ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( Name ) ) - #include <vector> class SvStream; diff --git a/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx b/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx index c97a756..0fc4fb3 100644 --- a/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx +++ b/ucbhelper/workben/ucbexplorer/ucbexplorer.cxx @@ -353,7 +353,7 @@ BOOL UcbExplorerListBoxEntry::createNewContent( const ContentInfo& rInfo, const OUString& rName = pProps[ n ].Name; std::auto_ptr< ResMgr > xManager( - ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( ucbexplorer ) ) ); + ResMgr::CreateResMgr( "ucbexplorer" ) ); StringInputDialog* pDlg = new StringInputDialog( *xManager.get(), rName, rName ); USHORT nRet = pDlg->Execute(); if ( nRet == RET_OK ) @@ -441,7 +441,7 @@ BOOL UcbExplorerListBoxEntry::createNewContent( const ContentInfo& rInfo, // data to supply to the new content. std::auto_ptr< ResMgr > xManager( - ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( ucbexplorer ) ) ); + ResMgr::CreateResMgr( "ucbexplorer" ) ); StringInputDialog* pDlg = new StringInputDialog( *xManager.get(), OUString(RTL_CONSTASCII_USTRINGPARAM( @@ -649,7 +649,7 @@ void UcbExplorerTreeListBox::Command( const CommandEvent& rCEvt ) if ( pEntry ) { std::auto_ptr< ResMgr > xManager( - ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( ucbexplorer ) ) ); + ResMgr::CreateResMgr( "ucbexplorer" ) ); PopupMenu* pMenu = new PopupMenu( ResId( MENU_POPUP, *xManager.get() ) ); PopupMenu* pNewMenu = 0; @@ -764,7 +764,7 @@ void UcbExplorerTreeListBox::Command( const CommandEvent& rCEvt ) } std::auto_ptr< ResMgr > xManager( - ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( ucbexplorer ) ) ); + ResMgr::CreateResMgr( "ucbexplorer" ) ); StringInputDialog* pDlg = new StringInputDialog( *xManager.get(), @@ -1137,8 +1137,7 @@ void MyApp::Main() // Create/init/show app window. ////////////////////////////////////////////////////////////////////// - std::auto_ptr< ResMgr > xManager( - ResMgr::CreateResMgr( CREATEVERSIONRESMGR_NAME( ucbexplorer ) ) ); + std::auto_ptr< ResMgr > xManager( ResMgr::CreateResMgr( "ucbexplorer" ) ); UcbExplorerWindow aAppWin( *xManager.get(), 0, WB_APP | WB_STDWORK ); diff --git a/uui/source/iahndl-authentication.cxx b/uui/source/iahndl-authentication.cxx index 4a38c2e..3844804 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 a2b8010..4ef37b3 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 328f671..f3abea7 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 df3a512..2255096 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 e03e217..5ed5c01 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 48d61b1..5bd3832 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 345fb48..cb60a48 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; commit 64de14a0c14d5c0f47692f4a956d71bfe75614aa Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Feb 23 17:00:39 2012 +0100 My fix is nicer ;) diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index bbb31f0..e555396 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -1100,9 +1100,9 @@ void PPDParser::parse( ::std::list< rtl::OString >& rLines ) if (nTransPos == -1) nTransPos = aLine.getLength(); aValue = String( aLine.copy( 0, nTransPos ), RTL_TEXTENCODING_MS_1252 ); - if (nTransPos+2 < aLine.getLength()) + // after the second doublequote can follow a / and a translation + if (nTransPos < aLine.getLength() - 2) { - // after the second doublequote can follow a / and a translation aValueTranslation = handleTranslation( aLine.copy( nTransPos+2 ), bIsGlobalizedLine ); } // check for quoted value commit 74214eba7424dd1d2c23ba1be07ec8d345193a14 Author: Stephan Bergmann <sberg...@redhat.com> Date: Thu Feb 23 16:59:58 2012 +0100 Clean up diff --git a/salhelper/source/gcc3.map b/salhelper/source/gcc3.map index 8f08ec9..b475a1a 100644 --- a/salhelper/source/gcc3.map +++ b/salhelper/source/gcc3.map @@ -108,12 +108,10 @@ LIBO_UDK_3.6 { # symbols available in >= LibO 3.6 _ZN9salhelper6ThreadD1Ev; # salhelper::Thread::~Thread() _ZN9salhelper6ThreadD2Ev; # salhelper::Thread::~Thread() _ZTVN9salhelper6ThreadE; # vtable for salhelper::Thread - # non-virtual thunk to salhelper::Thread::onTerminated() - _ZThn16_N9salhelper6Thread12onTerminatedEv; - _ZThn8_N9salhelper6Thread12onTerminatedEv; - # non-virtual thunk to salhelper::Thread::run() - _ZThn8_N9salhelper6Thread3runEv; - _ZThn16_N9salhelper6Thread3runEv; + _ZThn*_N9salhelper6Thread12onTerminatedEv; + # non-virtual thunk to salhelper::Thread::onTerminated() + _ZThn*_N9salhelper6Thread3runEv; + # non-virtual thunk to salhelper::Thread::run() } UDK_3.1; # Unique libstdc++ symbols: _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits