diff options
-rw-r--r-- | framework/source/layoutmanager/helpers.cxx | 4 | ||||
-rw-r--r-- | framework/source/services/substitutepathvars.cxx | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/framework/source/layoutmanager/helpers.cxx b/framework/source/layoutmanager/helpers.cxx index 064407a8bb90..1f9a03742686 100644 --- a/framework/source/layoutmanager/helpers.cxx +++ b/framework/source/layoutmanager/helpers.cxx @@ -218,7 +218,7 @@ WindowAlign ImplConvertAlignment( sal_Int16 aAlignment ) { sal_Int32 nIndex = 0; ::rtl::OUString aPathPart = aResourceURL.copy( aUIResourceURL.getLength() ); - ::rtl::OUString aUIResource = aPathPart.getToken( 0, (sal_Unicode)'/', nIndex ); + aPathPart.getToken( 0, (sal_Unicode)'/', nIndex ); return aPathPart.getToken( 0, (sal_Unicode)'/', nIndex ); } @@ -233,7 +233,7 @@ void parseResourceURL( const rtl::OUString& aResourceURL, rtl::OUString& aElemen { sal_Int32 nIndex = 0; ::rtl::OUString aPathPart = aResourceURL.copy( aUIResourceURL.getLength() ); - ::rtl::OUString aUIResource = aPathPart.getToken( 0, (sal_Unicode)'/', nIndex ); + aPathPart.getToken( 0, (sal_Unicode)'/', nIndex ); aElementType = aPathPart.getToken( 0, (sal_Unicode)'/', nIndex ); aElementName = aPathPart.getToken( 0, (sal_Unicode)'/', nIndex ); diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index fbab8a466532..f554854388d8 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -1161,8 +1161,6 @@ void SubstitutePathVariables::SetPredefinedPathVariables( PredefinedPathVariable aPreDefPathVariables.m_FixedVar[PREDEFVAR_BRANDBASEURL]); Any aAny; - ::rtl::OUString aTmp; - String aResult; // Get inspath and userpath from bootstrap mechanism in every case as file URL ::utl::Bootstrap::PathStatus aState; @@ -1235,6 +1233,7 @@ void SubstitutePathVariables::SetPredefinedPathVariables( PredefinedPathVariable aPreDefPathVariables.m_FixedVar[ PREDEFVAR_PATH ] = GetPathVariableValue(); // Set $(temp) + OUString aTmp; osl::FileBase::getTempDirURL( aTmp ); aPreDefPathVariables.m_FixedVar[ PREDEFVAR_TEMP ] = ConvertOSLtoUCBURL( aTmp ); } |