diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/logging/filehandler.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx index c0750a90cab2..0d5d9d9965f3 100644 --- a/extensions/source/logging/filehandler.cxx +++ b/extensions/source/logging/filehandler.cxx @@ -37,6 +37,7 @@ #include <com/sun/star/ucb/AlreadyInitializedException.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <com/sun/star/util/PathSubstitution.hpp> #include <com/sun/star/util/XStringSubstitution.hpp> /** === end UNO includes === **/ @@ -75,6 +76,7 @@ namespace logging using ::com::sun::star::uno::Exception; using ::com::sun::star::lang::IllegalArgumentException; using ::com::sun::star::uno::UNO_QUERY_THROW; + using ::com::sun::star::util::PathSubstitution; using ::com::sun::star::util::XStringSubstitution; using ::com::sun::star::beans::NamedValue; /** === end UNO using === **/ @@ -240,9 +242,8 @@ namespace logging { try { - Reference< XStringSubstitution > xStringSubst; - if ( m_aContext.createComponent( "com.sun.star.util.PathSubstitution", xStringSubst ) ) - _inout_rURL = xStringSubst->substituteVariables( _inout_rURL, true ); + Reference< XStringSubstitution > xStringSubst(PathSubstitution::create(m_aContext.getUNOContext())); + _inout_rURL = xStringSubst->substituteVariables( _inout_rURL, true ); } catch( const Exception& ) { |