Kaydet (Commit) 89e121fd authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS hr50 (1.18.2); FILE MERGED

2008/04/09 11:40:48 hr 1.18.2.1: #i86574#: fix warning (gcc-4.2.3)
üst 179bb8f4
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: substitutepathvars.cxx,v $ * $RCSfile: substitutepathvars.cxx,v $
* $Revision: 1.20 $ * $Revision: 1.21 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -1157,16 +1157,20 @@ void SubstitutePathVariables::SetPredefinedPathVariables( PredefinedPathVariable ...@@ -1157,16 +1157,20 @@ void SubstitutePathVariables::SetPredefinedPathVariables( PredefinedPathVariable
::rtl::OUString sVal ; ::rtl::OUString sVal ;
aState = utl::Bootstrap::locateBaseInstallation( sVal ); aState = utl::Bootstrap::locateBaseInstallation( sVal );
if( aState==::utl::Bootstrap::PATH_EXISTS ) if( aState==::utl::Bootstrap::PATH_EXISTS ) {
aPreDefPathVariables.m_FixedVar[ PREDEFVAR_INSTPATH ] = ConvertOSLtoUCBURL( sVal ); aPreDefPathVariables.m_FixedVar[ PREDEFVAR_INSTPATH ] = ConvertOSLtoUCBURL( sVal );
else }
else {
LOG_ERROR( "SubstitutePathVariables::SetPredefinedPathVariables", "Bootstrap code has no value for instpath!"); LOG_ERROR( "SubstitutePathVariables::SetPredefinedPathVariables", "Bootstrap code has no value for instpath!");
}
aState = utl::Bootstrap::locateUserData( sVal ); aState = utl::Bootstrap::locateUserData( sVal );
if( aState == ::utl::Bootstrap::PATH_EXISTS ) if( aState == ::utl::Bootstrap::PATH_EXISTS ) {
aPreDefPathVariables.m_FixedVar[ PREDEFVAR_USERPATH ] = ConvertOSLtoUCBURL( sVal ); aPreDefPathVariables.m_FixedVar[ PREDEFVAR_USERPATH ] = ConvertOSLtoUCBURL( sVal );
else }
else {
LOG_ERROR( "SubstitutePathVariables::SetPredefinedPathVariables", "Bootstrap code has no value for userpath"); LOG_ERROR( "SubstitutePathVariables::SetPredefinedPathVariables", "Bootstrap code has no value for userpath");
}
// Set $(inst), $(instpath), $(insturl) // Set $(inst), $(instpath), $(insturl)
aPreDefPathVariables.m_FixedVar[ PREDEFVAR_INSTURL ] = aPreDefPathVariables.m_FixedVar[ PREDEFVAR_INSTPATH ]; aPreDefPathVariables.m_FixedVar[ PREDEFVAR_INSTURL ] = aPreDefPathVariables.m_FixedVar[ PREDEFVAR_INSTPATH ];
......
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