diff options
Diffstat (limited to 'ucbhelper/source/provider')
18 files changed, 93 insertions, 77 deletions
diff --git a/ucbhelper/source/provider/cancelcommandexecution.cxx b/ucbhelper/source/provider/cancelcommandexecution.cxx index 8be75ee8aabd..457c1b4e81e7 100644 --- a/ucbhelper/source/provider/cancelcommandexecution.cxx +++ b/ucbhelper/source/provider/cancelcommandexecution.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -37,9 +38,7 @@ #include <cppuhelper/exc_hlp.hxx> #include <com/sun/star/ucb/CommandFailedException.hpp> #include <com/sun/star/ucb/XCommandEnvironment.hpp> -#ifndef _UCBHELPER_INTERACTIONREQUEST_HXX #include <ucbhelper/interactionrequest.hxx> -#endif #include <ucbhelper/cancelcommandexecution.hxx> #include <ucbhelper/simpleioerrorrequest.hxx> @@ -85,7 +84,7 @@ void cancelCommandExecution( const uno::Any & rException, cppu::throwException( rException ); - OSL_ENSURE( sal_False, "Return from cppu::throwException call!!!" ); + OSL_FAIL( "Return from cppu::throwException call!!!" ); throw uno::RuntimeException(); } @@ -123,8 +122,10 @@ void cancelCommandExecution( const ucb::IOErrorCode eError, cppu::throwException( xRequest->getRequest() ); - OSL_ENSURE( sal_False, "Return from cppu::throwException call!!!" ); + OSL_FAIL( "Return from cppu::throwException call!!!" ); throw uno::RuntimeException(); } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/commandenvironmentproxy.cxx b/ucbhelper/source/provider/commandenvironmentproxy.cxx index 33b8dd3fdfca..7e3f10047812 100644 --- a/ucbhelper/source/provider/commandenvironmentproxy.cxx +++ b/ucbhelper/source/provider/commandenvironmentproxy.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -45,7 +46,6 @@ using namespace com::sun::star::lang; using namespace com::sun::star::task; using namespace com::sun::star::ucb; using namespace com::sun::star::uno; -using namespace rtl; namespace ucbhelper { @@ -165,3 +165,4 @@ CommandEnvironmentProxy::getProgressHandler() } /* namespace ucbhelper */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index 17b494e00437..6a5073750b9a 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -33,7 +34,7 @@ *************************************************************************/ -#include <hash_map> +#include <boost/unordered_map.hpp> #include <com/sun/star/ucb/ContentAction.hpp> #include <com/sun/star/ucb/CommandInfoChange.hpp> #include <com/sun/star/ucb/XPersistentPropertySet.hpp> @@ -101,7 +102,7 @@ struct hashPtr } }; -typedef std::hash_map +typedef boost::unordered_map < XPropertiesChangeListenerPtr, PropertyEventSequence*, @@ -596,20 +597,17 @@ void SAL_CALL ContentImplHelper::addProperty( } catch ( beans::PropertyExistException const & ) { - OSL_ENSURE( sal_False, - "ContentImplHelper::addProperty - Exists!" ); + OSL_FAIL( "ContentImplHelper::addProperty - Exists!" ); throw; } catch ( beans::IllegalTypeException const & ) { - OSL_ENSURE( sal_False, - "ContentImplHelper::addProperty - Wrong Type!" ); + OSL_FAIL( "ContentImplHelper::addProperty - Wrong Type!" ); throw; } catch ( lang::IllegalArgumentException const & ) { - OSL_ENSURE( sal_False, - "ContentImplHelper::addProperty - Illegal Arg!" ); + OSL_FAIL( "ContentImplHelper::addProperty - Illegal Arg!" ); throw; } @@ -663,7 +661,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const rtl::OUString& Name ) } catch ( beans::UnknownPropertyException const & ) { - OSL_ENSURE( sal_False, "ContentImplHelper::removeProperty - Unknown!" ); + OSL_FAIL( "ContentImplHelper::removeProperty - Unknown!" ); throw; } @@ -691,14 +689,12 @@ void SAL_CALL ContentImplHelper::removeProperty( const rtl::OUString& Name ) } catch ( beans::UnknownPropertyException const & ) { - OSL_ENSURE( sal_False, - "ContentImplHelper::removeProperty - Unknown!" ); + OSL_FAIL( "ContentImplHelper::removeProperty - Unknown!" ); throw; } catch ( beans::NotRemoveableException const & ) { - OSL_ENSURE( - sal_False, + OSL_FAIL( "ContentImplHelper::removeProperty - Unremoveable!" ); throw; } @@ -1125,3 +1121,5 @@ ContentImplHelper::getPropertySetInfo( } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/contentidentifier.cxx b/ucbhelper/source/provider/contentidentifier.cxx index 7324c2cd5835..71db204a30b8 100644 --- a/ucbhelper/source/provider/contentidentifier.cxx +++ b/ucbhelper/source/provider/contentidentifier.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -38,11 +39,12 @@ #include <cppuhelper/typeprovider.hxx> #include <osl/mutex.hxx> -using namespace rtl; using namespace com::sun::star::uno; using namespace com::sun::star::lang; using namespace com::sun::star::ucb; +using ::rtl::OUString; + namespace ucbhelper { @@ -219,3 +221,4 @@ OUString SAL_CALL ContentIdentifier::getContentProviderScheme() } /* namespace ucbhelper */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/contentinfo.cxx b/ucbhelper/source/provider/contentinfo.cxx index 72dc633bd274..d7d982364b14 100644 --- a/ucbhelper/source/provider/contentinfo.cxx +++ b/ucbhelper/source/provider/contentinfo.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -421,3 +422,5 @@ sal_Bool CommandProcessorInfo::queryCommand( } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/handleinteractionrequest.cxx b/ucbhelper/source/provider/handleinteractionrequest.cxx index 395a81c36fed..84a010fde6d9 100644 --- a/ucbhelper/source/provider/handleinteractionrequest.cxx +++ b/ucbhelper/source/provider/handleinteractionrequest.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -38,9 +39,7 @@ #include "cppuhelper/exc_hlp.hxx" #include "osl/diagnose.h" #include "rtl/ustring.hxx" -#ifndef _UCBHELPER_INTERACTIONREQUEST_HXX #include "ucbhelper/interactionrequest.hxx" -#endif #include "ucbhelper/simpleauthenticationrequest.hxx" #include "ucbhelper/simpleinteractionrequest.hxx" #include "ucbhelper/simplecertificatevalidationrequest.hxx" @@ -162,3 +161,4 @@ handleInteractionRequest( } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/interactionrequest.cxx b/ucbhelper/source/provider/interactionrequest.cxx index 3704a0f1546c..18cd2435c7f2 100644 --- a/ucbhelper/source/provider/interactionrequest.cxx +++ b/ucbhelper/source/provider/interactionrequest.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -1149,3 +1150,4 @@ void SAL_CALL InteractionReplaceExistingData::select() recordSelection(); } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx index 1c857ca467f0..c6ab550237c1 100644 --- a/ucbhelper/source/provider/propertyvalueset.cxx +++ b/ucbhelper/source/provider/propertyvalueset.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -55,7 +56,7 @@ using namespace com::sun::star::script; using namespace com::sun::star::sdbc; using namespace com::sun::star::uno; using namespace com::sun::star::util; -using namespace rtl; +using ::rtl::OUString; namespace ucbhelper_impl { @@ -163,7 +164,7 @@ class PropertyValues : public PropertyValuesVector {}; if ( ( columnIndex < 1 ) \ || ( columnIndex > sal_Int32( m_pValues->size() ) ) ) \ { \ - OSL_ENSURE( sal_False, "PropertyValueSet - index out of range!" ); \ + OSL_FAIL( "PropertyValueSet - index out of range!" ); \ } \ else \ { \ @@ -479,7 +480,7 @@ Any SAL_CALL PropertyValueSet::getObject( if ( ( columnIndex < 1 ) || ( columnIndex > sal_Int32( m_pValues->size() ) ) ) { - OSL_ENSURE( sal_False, "PropertyValueSet - index out of range!" ); + OSL_FAIL( "PropertyValueSet - index out of range!" ); } else { @@ -576,8 +577,7 @@ Any SAL_CALL PropertyValueSet::getObject( case OBJECT_VALUE_SET: // Fall-through is intended! default: - OSL_ENSURE( sal_False, - "PropertyValueSet::getObject - " + OSL_FAIL( "PropertyValueSet::getObject - " "Wrong original type" ); break; } @@ -665,8 +665,8 @@ const Reference< XTypeConverter >& PropertyValueSet::getTypeConverter() m_bTriedToGetTypeConverter = sal_True; m_xTypeConverter = Reference< XTypeConverter >( m_xSMgr->createInstance( - OUString::createFromAscii( - "com.sun.star.script.Converter" ) ), + OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.script.Converter" )) ), UNO_QUERY ); OSL_ENSURE( m_xTypeConverter.is(), @@ -922,3 +922,5 @@ sal_Bool PropertyValueSet::appendPropertySetValue( } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx index ac35df0e3420..d418005eb439 100644 --- a/ucbhelper/source/provider/providerhelper.cxx +++ b/ucbhelper/source/provider/providerhelper.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -34,7 +35,7 @@ *************************************************************************/ -#include <hash_map> +#include <boost/unordered_map.hpp> #include <com/sun/star/beans/XPropertyAccess.hpp> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/container/XNamed.hpp> @@ -76,7 +77,7 @@ struct hashString } }; -typedef std::hash_map +typedef boost::unordered_map < rtl::OUString, uno::WeakReference< ucb::XContent >, @@ -325,8 +326,8 @@ ContentProviderImplHelper::getAdditionalPropertySetRegistry() uno::Reference< com::sun::star::ucb::XPropertySetRegistryFactory > xRegFac( m_xSMgr->createInstance( - rtl::OUString::createFromAscii( - "com.sun.star.ucb.Store" ) ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.ucb.Store" )) ), uno::UNO_QUERY ); OSL_ENSURE( xRegFac.is(), @@ -670,3 +671,5 @@ sal_Bool ContentProviderImplHelper::removeAdditionalPropertySet( } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/registerucb.cxx b/ucbhelper/source/provider/registerucb.cxx index e6ccaf4743a8..2f45d1507ef4 100644 --- a/ucbhelper/source/provider/registerucb.cxx +++ b/ucbhelper/source/provider/registerucb.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -162,3 +163,5 @@ registerAtUcb( } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index 47825f15c6b1..b39d6aa886a6 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -308,8 +309,8 @@ XTYPEPROVIDER_IMPL_9( ResultSet, //========================================================================= XSERVICEINFO_NOFACTORY_IMPL_1( ResultSet, - rtl::OUString::createFromAscii( "ResultSet" ), - rtl::OUString::createFromAscii( RESULTSET_SERVICE_NAME ) ); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ResultSet")), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( RESULTSET_SERVICE_NAME )) ); //========================================================================= // @@ -1357,13 +1358,13 @@ void SAL_CALL ResultSet::setPropertyValue( const rtl::OUString& aPropertyName, throw beans::UnknownPropertyException(); if ( aPropertyName.equals( - rtl::OUString::createFromAscii( "RowCount" ) ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) ) { // property is read-only. throw lang::IllegalArgumentException(); } else if ( aPropertyName.equals( - rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) ) { // property is read-only. throw lang::IllegalArgumentException(); @@ -1388,12 +1389,12 @@ uno::Any SAL_CALL ResultSet::getPropertyValue( uno::Any aValue; if ( PropertyName.equals( - rtl::OUString::createFromAscii( "RowCount" ) ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) ) { aValue <<= m_pImpl->m_xDataSupplier->currentCount(); } else if ( PropertyName.equals( - rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) ) { aValue <<= m_pImpl->m_xDataSupplier->isCountFinal(); } @@ -1420,9 +1421,9 @@ void SAL_CALL ResultSet::addPropertyChangeListener( if ( aPropertyName.getLength() && !aPropertyName.equals( - rtl::OUString::createFromAscii( "RowCount" ) ) && + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) && !aPropertyName.equals( - rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) ) throw beans::UnknownPropertyException(); if ( !m_pImpl->m_pPropertyChangeListeners ) @@ -1446,9 +1447,9 @@ void SAL_CALL ResultSet::removePropertyChangeListener( if ( aPropertyName.getLength() && !aPropertyName.equals( - rtl::OUString::createFromAscii( "RowCount" ) ) && + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")) ) && !aPropertyName.equals( - rtl::OUString::createFromAscii( "IsRowCountFinal" ) ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")) ) ) throw beans::UnknownPropertyException(); if ( m_pImpl->m_pPropertyChangeListeners ) @@ -1535,7 +1536,7 @@ void ResultSet::rowCountChanged( sal_uInt32 nOld, sal_uInt32 nNew ) propertyChanged( beans::PropertyChangeEvent( static_cast< cppu::OWeakObject * >( this ), - rtl::OUString::createFromAscii( "RowCount" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RowCount")), sal_False, 1001, uno::makeAny( nOld ), // old value @@ -1551,7 +1552,7 @@ void ResultSet::rowCountFinal() propertyChanged( beans::PropertyChangeEvent( static_cast< cppu::OWeakObject * >( this ), - rtl::OUString::createFromAscii( "IsRowCountFinal" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRowCountFinal")), sal_False, 1000, uno:: makeAny( sal_False ), // old value @@ -1693,3 +1694,5 @@ sal_Bool PropertySetInfo::queryProperty( } } // namespace ucbhelper_impl + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/resultsethelper.cxx b/ucbhelper/source/provider/resultsethelper.cxx index a10f527b2ba9..ac6798e7450e 100644 --- a/ucbhelper/source/provider/resultsethelper.cxx +++ b/ucbhelper/source/provider/resultsethelper.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -116,10 +117,10 @@ XTYPEPROVIDER_IMPL_3( ResultSetImplHelper, //========================================================================= XSERVICEINFO_NOFACTORY_IMPL_1( ResultSetImplHelper, - rtl::OUString::createFromAscii( - "ResultSetImplHelper" ), - rtl::OUString::createFromAscii( - DYNAMICRESULTSET_SERVICE_NAME ) ); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "ResultSetImplHelper" )), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + DYNAMICRESULTSET_SERVICE_NAME )) ); //========================================================================= // @@ -272,8 +273,8 @@ void SAL_CALL ResultSetImplHelper::connectToCache( = uno::Reference< com::sun::star::ucb::XCachedDynamicResultSetStubFactory >( m_xSMgr->createInstance( - rtl::OUString::createFromAscii( - "com.sun.star.ucb.CachedDynamicResultSetStubFactory" ) ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.ucb.CachedDynamicResultSetStubFactory" )) ), uno::UNO_QUERY ); } catch ( uno::Exception const & ) @@ -327,3 +328,5 @@ void ResultSetImplHelper::init( sal_Bool bStatic ) } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx index 30ba735943bc..80b3bc12c51b 100644 --- a/ucbhelper/source/provider/resultsetmetadata.cxx +++ b/ucbhelper/source/provider/resultsetmetadata.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -55,7 +56,8 @@ using namespace com::sun::star::lang; using namespace com::sun::star::sdbc; using namespace com::sun::star::uno; using namespace com::sun::star::util; -using namespace rtl; + +using ::rtl::OUString; namespace ucbhelper_impl { @@ -411,32 +413,12 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) { Reference< XPropertySetInfo > xInfo( m_xSMgr->createInstance( - OUString::createFromAscii( - "com.sun.star.ucb.PropertiesManager" ) ), + OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.ucb.PropertiesManager" )) ), UNO_QUERY ); if ( xInfo.is() ) { -#if 0 - // Convenient... - - sal_Int32 nCount = m_pImpl->m_aProps.getLength(); - Property* pProps = m_pImpl->m_aProps.getArray(); - for ( sal_Int32 n = 0; n < nCount; ++n ) - { - Property& rProp = pProps[ n ]; - try - { - Property aProp - = xInfo->getPropertyByName( rProp.Name ); - rProp.Type = aProp.Type; - } - catch ( UnknownPropertyException& ) - { - // getPropertyByName - } - } -#else // Less (remote) calls... Sequence< Property > aProps = xInfo->getProperties(); @@ -460,7 +442,6 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) } } } -#endif } } catch ( RuntimeException& ) @@ -600,3 +581,5 @@ OUString SAL_CALL ResultSetMetaData::getColumnServiceName( sal_Int32 column ) } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/simpleauthenticationrequest.cxx b/ucbhelper/source/provider/simpleauthenticationrequest.cxx index 8fc94cf88438..c4ac91cb5789 100644 --- a/ucbhelper/source/provider/simpleauthenticationrequest.cxx +++ b/ucbhelper/source/provider/simpleauthenticationrequest.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -241,3 +242,5 @@ void SimpleAuthenticationRequest::initialize( setContinuations( aContinuations ); } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx b/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx index 8a34dc3c4e13..16946664e518 100755..100644 --- a/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx +++ b/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -82,7 +83,9 @@ sal_Int32 SimpleCertificateValidationRequest::getResponse() const if ( xDisapprove.is() ) return 8; - OSL_ENSURE( sal_False, "CertificateValidationRequest - Unknown continuation!" ); + OSL_FAIL( "CertificateValidationRequest - Unknown continuation!" ); } return 0; } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/simpleinteractionrequest.cxx b/ucbhelper/source/provider/simpleinteractionrequest.cxx index 6f5fb5d4e820..69e833434b54 100644 --- a/ucbhelper/source/provider/simpleinteractionrequest.cxx +++ b/ucbhelper/source/provider/simpleinteractionrequest.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -124,9 +125,9 @@ sal_Int32 SimpleInteractionRequest::getResponse() const if ( xDisapprove.is() ) return CONTINUATION_DISAPPROVE; - OSL_ENSURE( sal_False, - "SimpleInteractionRequest::getResponse - Unknown continuation!" ); + OSL_FAIL( "SimpleInteractionRequest::getResponse - Unknown continuation!" ); } return CONTINUATION_UNKNOWN; } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/simpleioerrorrequest.cxx b/ucbhelper/source/provider/simpleioerrorrequest.cxx index da6eea06cda0..4cf82b342365 100644 --- a/ucbhelper/source/provider/simpleioerrorrequest.cxx +++ b/ucbhelper/source/provider/simpleioerrorrequest.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -58,3 +59,4 @@ SimpleIOErrorRequest::SimpleIOErrorRequest( setContinuations( aContinuations ); } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/simplenameclashresolverequest.cxx b/ucbhelper/source/provider/simplenameclashresolverequest.cxx index 3c3c69d93b3e..36fa09516fbf 100644 --- a/ucbhelper/source/provider/simplenameclashresolverequest.cxx +++ b/ucbhelper/source/provider/simplenameclashresolverequest.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -65,3 +66,4 @@ SimpleNameClashResolveRequest::SimpleNameClashResolveRequest( setContinuations( aContinuations ); } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |