diff options
Diffstat (limited to 'desktop/source/deployment/dp_log.cxx')
-rw-r--r-- | desktop/source/deployment/dp_log.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop/source/deployment/dp_log.cxx b/desktop/source/deployment/dp_log.cxx index 0fc8b08a15b7..bb58770c4cdb 100644 --- a/desktop/source/deployment/dp_log.cxx +++ b/desktop/source/deployment/dp_log.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -62,11 +62,11 @@ class ProgressLogImpl : public ::dp_misc::MutexHolder, public t_log_helper protected: virtual void SAL_CALL disposing(); virtual ~ProgressLogImpl(); - + public: ProgressLogImpl( Sequence<Any> const & args, Reference<XComponentContext> const & xContext ); - + // XProgressHandler virtual void SAL_CALL push( Any const & Status ) throw (RuntimeException); virtual void SAL_CALL update( Any const & Status ) throw (RuntimeException); @@ -104,7 +104,7 @@ ProgressLogImpl::ProgressLogImpl( OUString log_file; boost::optional< Reference<task::XInteractionHandler> > interactionHandler; comphelper::unwrapArgs( args, log_file, interactionHandler ); - + Reference<ucb::XSimpleFileAccess> xSimpleFileAccess( xContext->getServiceManager()->createInstanceWithContext( OUSTR("com.sun.star.ucb.SimpleFileAccess"), @@ -112,12 +112,12 @@ ProgressLogImpl::ProgressLogImpl( // optional ia handler: if (interactionHandler) xSimpleFileAccess->setInteractionHandler( *interactionHandler ); - + m_xLogFile.set( xSimpleFileAccess->openFileWrite( log_file ), UNO_QUERY_THROW ); Reference<io::XSeekable> xSeekable( m_xLogFile, UNO_QUERY_THROW ); xSeekable->seek( xSeekable->getLength() ); - + // write log stamp OStringBuffer buf; buf.append( @@ -174,12 +174,12 @@ void ProgressLogImpl::update( Any const & Status ) { if (! Status.hasValue()) return; - + OUStringBuffer buf; OSL_ASSERT( m_log_level >= 0 ); for ( sal_Int32 n = 0; n < m_log_level; ++n ) buf.append( static_cast<sal_Unicode>(' ') ); - + OUString msg; if (Status >>= msg) { buf.append( msg ); |