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

Simplify PPPOptimizerTokenEnum -> OUString

Change-Id: I88176f00c5fb356d63ecfdd291c006e88606a604
üst 3eb84bcb
......@@ -162,15 +162,15 @@ ConfigurationAccess::~ConfigurationAccess()
{
}
OUString ConfigurationAccess::getPath( const PPPOptimizerTokenEnum eToken )
OUString ConfigurationAccess::getPath( OUString const & token )
{
OUString aPath;
try
{
static const OUString sProtocol( "vnd.sun.star.expand:" );
Reference< container::XNameAccess > xSet( OpenConfiguration( true ), UNO_QUERY_THROW );
if ( xSet->hasByName( TKGet( eToken ) ) )
xSet->getByName( TKGet( eToken ) ) >>= aPath;
if ( xSet->hasByName( token ) )
xSet->getByName( token ) >>= aPath;
if ( aPath.match( sProtocol, 0 ) )
{
OUString aTmp( aPath.copy( 20 ) );
......
......@@ -87,7 +87,7 @@ class ConfigurationAccess
~ConfigurationAccess();
void SaveConfiguration();
OUString getPath( const PPPOptimizerTokenEnum );
OUString getPath( OUString const & token );
OUString getString( const PPPOptimizerTokenEnum ) const;
// access to current OptimizerSettings (stored in the first entry of maSettings)
......
......@@ -118,7 +118,7 @@ void OptimizerDialog::InitRoadmap()
InsertRoadmapItem( 3, sal_True, getString( STR_OLE_OBJECTS ), ITEM_ID_OLE_OPTIMIZATION );
InsertRoadmapItem( 4, sal_True, getString( STR_SUMMARY ), ITEM_ID_SUMMARY );
OUString sBitmapPath( getPath( TK_BitmapPath ) );
OUString sBitmapPath( getPath( "BitmapPath" ) );
OUString sBitmap( "/minimizepresi_80.png" );
OUString sURL( sBitmapPath += sBitmap );
......
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