From 028b4003986f9cff3274707eebd14ee9099bf87b Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Mon, 4 Oct 2010 16:59:51 +0200 Subject: remove include guards using fixguard.py --- ucbhelper/source/provider/cancelcommandexecution.cxx | 2 -- ucbhelper/source/provider/configureucb.cxx | 2 -- ucbhelper/source/provider/handleinteractionrequest.cxx | 2 -- ucbhelper/source/provider/provconf.cxx | 2 -- ucbhelper/source/provider/simplecertificatevalidationrequest.cxx | 0 5 files changed, 8 deletions(-) mode change 100755 => 100644 ucbhelper/source/provider/simplecertificatevalidationrequest.cxx (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/provider/cancelcommandexecution.cxx b/ucbhelper/source/provider/cancelcommandexecution.cxx index 8be75ee8aabd..042b68904fa2 100644 --- a/ucbhelper/source/provider/cancelcommandexecution.cxx +++ b/ucbhelper/source/provider/cancelcommandexecution.cxx @@ -37,9 +37,7 @@ #include #include #include -#ifndef _UCBHELPER_INTERACTIONREQUEST_HXX #include -#endif #include #include diff --git a/ucbhelper/source/provider/configureucb.cxx b/ucbhelper/source/provider/configureucb.cxx index ee881c97ecbf..69c2d41f740c 100644 --- a/ucbhelper/source/provider/configureucb.cxx +++ b/ucbhelper/source/provider/configureucb.cxx @@ -37,9 +37,7 @@ #include "osl/diagnose.h" -#ifndef _UCBHELPER_PROVCONF_HXX_ #include -#endif #include using namespace com::sun::star; diff --git a/ucbhelper/source/provider/handleinteractionrequest.cxx b/ucbhelper/source/provider/handleinteractionrequest.cxx index 395a81c36fed..a74293b72cb9 100644 --- a/ucbhelper/source/provider/handleinteractionrequest.cxx +++ b/ucbhelper/source/provider/handleinteractionrequest.cxx @@ -38,9 +38,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" diff --git a/ucbhelper/source/provider/provconf.cxx b/ucbhelper/source/provider/provconf.cxx index df1917b45413..2cd7edfc67ef 100644 --- a/ucbhelper/source/provider/provconf.cxx +++ b/ucbhelper/source/provider/provconf.cxx @@ -34,9 +34,7 @@ *************************************************************************/ -#ifndef _UCBHELPER_PROVCONF_HXX_ #include -#endif #include #include #include diff --git a/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx b/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx old mode 100755 new mode 100644 -- cgit From 4905a190326a423b418a6b5531c5d990a5cc0082 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 14 Oct 2010 08:27:31 +0200 Subject: Add vim/emacs modelines to all source files Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth --- ucbhelper/source/client/activedatasink.cxx | 3 +++ ucbhelper/source/client/activedatastreamer.cxx | 3 +++ ucbhelper/source/client/commandenvironment.cxx | 2 ++ ucbhelper/source/client/content.cxx | 2 ++ ucbhelper/source/client/contentbroker.cxx | 2 ++ ucbhelper/source/client/fileidentifierconverter.cxx | 3 +++ ucbhelper/source/client/interceptedinteraction.cxx | 3 +++ ucbhelper/source/client/proxydecider.cxx | 3 +++ ucbhelper/source/provider/cancelcommandexecution.cxx | 3 +++ ucbhelper/source/provider/commandenvironmentproxy.cxx | 2 ++ ucbhelper/source/provider/configureucb.cxx | 3 +++ ucbhelper/source/provider/contenthelper.cxx | 3 +++ ucbhelper/source/provider/contentidentifier.cxx | 2 ++ ucbhelper/source/provider/contentinfo.cxx | 3 +++ ucbhelper/source/provider/handleinteractionrequest.cxx | 2 ++ ucbhelper/source/provider/interactionrequest.cxx | 2 ++ ucbhelper/source/provider/propertyvalueset.cxx | 3 +++ ucbhelper/source/provider/provconf.cxx | 3 +++ ucbhelper/source/provider/provconf.hxx | 3 +++ ucbhelper/source/provider/providerhelper.cxx | 3 +++ ucbhelper/source/provider/registerucb.cxx | 3 +++ ucbhelper/source/provider/resultset.cxx | 3 +++ ucbhelper/source/provider/resultsethelper.cxx | 3 +++ ucbhelper/source/provider/resultsetmetadata.cxx | 3 +++ ucbhelper/source/provider/simpleauthenticationrequest.cxx | 3 +++ ucbhelper/source/provider/simplecertificatevalidationrequest.cxx | 3 +++ ucbhelper/source/provider/simpleinteractionrequest.cxx | 2 ++ ucbhelper/source/provider/simpleioerrorrequest.cxx | 2 ++ ucbhelper/source/provider/simplenameclashresolverequest.cxx | 2 ++ 29 files changed, 77 insertions(+) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/client/activedatasink.cxx b/ucbhelper/source/client/activedatasink.cxx index 029fb60e616f..5cdfa4f3df59 100644 --- a/ucbhelper/source/client/activedatasink.cxx +++ b/ucbhelper/source/client/activedatasink.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. @@ -91,3 +92,5 @@ uno::Reference< io::XInputStream > SAL_CALL ActiveDataSink::getInputStream() } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/client/activedatastreamer.cxx b/ucbhelper/source/client/activedatastreamer.cxx index 5f26334ab376..aa90802a16e7 100644 --- a/ucbhelper/source/client/activedatastreamer.cxx +++ b/ucbhelper/source/client/activedatastreamer.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. @@ -90,3 +91,5 @@ uno::Reference< io::XStream > SAL_CALL ActiveDataStreamer::getStream() } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/client/commandenvironment.cxx b/ucbhelper/source/client/commandenvironment.cxx index 75a137faeb5b..16c72aa833e5 100644 --- a/ucbhelper/source/client/commandenvironment.cxx +++ b/ucbhelper/source/client/commandenvironment.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. @@ -137,3 +138,4 @@ CommandEnvironment::getProgressHandler() } /* namespace ucbhelper */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 4debb1728bfe..1da9dc9b8a2b 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.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. @@ -1970,3 +1971,4 @@ void SAL_CALL ContentEventListener_Impl::disposing( const EventObject& Source ) } /* namespace ucbhelper */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/client/contentbroker.cxx b/ucbhelper/source/client/contentbroker.cxx index 408ff6af0dee..cc5f6f8280e0 100644 --- a/ucbhelper/source/client/contentbroker.cxx +++ b/ucbhelper/source/client/contentbroker.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. @@ -378,3 +379,4 @@ bool ContentBroker_Impl::initialize() } /* namespace ucbhelper */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/client/fileidentifierconverter.cxx b/ucbhelper/source/client/fileidentifierconverter.cxx index 64bc428a9934..514772363ca9 100644 --- a/ucbhelper/source/client/fileidentifierconverter.cxx +++ b/ucbhelper/source/client/fileidentifierconverter.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. @@ -105,3 +106,5 @@ getSystemPathFromFileURL( } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/client/interceptedinteraction.cxx b/ucbhelper/source/client/interceptedinteraction.cxx index a23206f615f3..0556e181c48b 100644 --- a/ucbhelper/source/client/interceptedinteraction.cxx +++ b/ucbhelper/source/client/interceptedinteraction.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. @@ -199,3 +200,5 @@ InterceptedInteraction::EInterceptionState InterceptedInteraction::impl_intercep } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx index 8505472e1b1f..8c26104a07b6 100644 --- a/ucbhelper/source/client/proxydecider.cxx +++ b/ucbhelper/source/client/proxydecider.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. @@ -859,3 +860,5 @@ const InternetProxyServer & InternetProxyDecider::getProxy( } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/cancelcommandexecution.cxx b/ucbhelper/source/provider/cancelcommandexecution.cxx index 042b68904fa2..36694413d0fa 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. @@ -126,3 +127,5 @@ void cancelCommandExecution( const ucb::IOErrorCode eError, } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/commandenvironmentproxy.cxx b/ucbhelper/source/provider/commandenvironmentproxy.cxx index 33b8dd3fdfca..533e5f6080e1 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. @@ -165,3 +166,4 @@ CommandEnvironmentProxy::getProgressHandler() } /* namespace ucbhelper */ +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/configureucb.cxx b/ucbhelper/source/provider/configureucb.cxx index 69c2d41f740c..2b858d614c78 100644 --- a/ucbhelper/source/provider/configureucb.cxx +++ b/ucbhelper/source/provider/configureucb.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. @@ -238,3 +239,5 @@ unconfigureUcb( } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index 17b494e00437..d95d48b40d44 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. @@ -1125,3 +1126,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..16bef11bd5a5 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. @@ -219,3 +220,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 a74293b72cb9..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. @@ -160,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..ab479372dc9f 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. @@ -922,3 +923,5 @@ sal_Bool PropertyValueSet::appendPropertySetValue( } } // namespace ucbhelper + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/provconf.cxx b/ucbhelper/source/provider/provconf.cxx index 2cd7edfc67ef..9e58ba5006e1 100644 --- a/ucbhelper/source/provider/provconf.cxx +++ b/ucbhelper/source/provider/provconf.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. @@ -262,3 +263,5 @@ bool getContentProviderData( } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/provconf.hxx b/ucbhelper/source/provider/provconf.hxx index 66d6a63d47b8..e21a619114ce 100644 --- a/ucbhelper/source/provider/provconf.hxx +++ b/ucbhelper/source/provider/provconf.hxx @@ -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. @@ -50,3 +51,5 @@ bool getContentProviderData( const com::sun::star::uno::Reference< } #endif /* !_UCBHELPER_PROVCONF_HXX_ */ + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx index ac35df0e3420..359e5c952463 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. @@ -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..9f2f97d558fd 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. @@ -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..a508b47818c9 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. @@ -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..1bd820ccfd04 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. @@ -600,3 +601,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..d3a7259d91cb 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. @@ -86,3 +87,5 @@ sal_Int32 SimpleCertificateValidationRequest::getResponse() const } 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..e178b695da15 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. @@ -130,3 +131,4 @@ sal_Int32 SimpleInteractionRequest::getResponse() const 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: */ -- cgit From 849a713ffd29a58ae79e48f80835c28bbd9d5a72 Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Mon, 18 Oct 2010 16:52:05 +0100 Subject: remove non-compiled code --- ucbhelper/source/provider/resultsetmetadata.cxx | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx index 1bd820ccfd04..d7697fb92533 100644 --- a/ucbhelper/source/provider/resultsetmetadata.cxx +++ b/ucbhelper/source/provider/resultsetmetadata.cxx @@ -417,27 +417,7 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) 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(); @@ -461,7 +441,6 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnType( sal_Int32 column ) } } } -#endif } } catch ( RuntimeException& ) -- cgit From 7d0f24c822b0f8af6b0b5fa82ed6bd288cdebe96 Mon Sep 17 00:00:00 2001 From: Gert Faller Date: Mon, 22 Nov 2010 22:54:33 +0100 Subject: RTL_CONSTASCII_USTRINGPARAM in libs-gui 09 --- ucbhelper/source/client/content.cxx | 56 ++++++++++++++++---------------- ucbhelper/source/client/proxydecider.cxx | 4 +-- ucbhelper/source/provider/resultset.cxx | 22 ++++++------- 3 files changed, 41 insertions(+), 41 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 1da9dc9b8a2b..60868c4fd973 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -257,7 +257,7 @@ static ContentBroker* getContentBroker( bool bThrow ) { if ( bThrow ) throw RuntimeException( - rtl::OUString::createFromAscii( "No Content Broker!" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("No Content Broker!")), Reference< XInterface >() ); } else @@ -535,7 +535,7 @@ Reference< XCommandInfo > Content::getCommands() throw( CommandAbortedException, RuntimeException, Exception ) { Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "getCommandInfo" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("getCommandInfo")); aCommand.Handle = -1; // n/a aCommand.Argument = Any(); @@ -551,7 +551,7 @@ Reference< XPropertySetInfo > Content::getProperties() throw( CommandAbortedException, RuntimeException, Exception ) { Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "getPropertySetInfo" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("getPropertySetInfo")); aCommand.Handle = -1; // n/a aCommand.Argument = Any(); @@ -678,7 +678,7 @@ Reference< XRow > Content::getPropertyValuesInterface( } Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "getPropertyValues" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("getPropertyValues")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aProps; @@ -711,7 +711,7 @@ Reference< XRow > Content::getPropertyValuesInterface( } Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "getPropertyValues" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("getPropertyValues")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aProps; @@ -759,7 +759,7 @@ Sequence< Any > Content::setPropertyValues( } Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "setPropertyValues" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("setPropertyValues")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aProps; @@ -807,7 +807,7 @@ Sequence< Any > Content::setPropertyValues( } Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "setPropertyValues" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("setPropertyValues")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aProps; @@ -876,7 +876,7 @@ Any Content::createCursorAny( const Sequence< rtl::OUString >& rPropertyNames, aArg.Properties = aProps; Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -909,7 +909,7 @@ Any Content::createCursorAny( const Sequence< sal_Int32 >& rPropertyHandles, aArg.Properties = aProps; Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1022,7 +1022,7 @@ Reference< XDynamicResultSet > Content::createSortedDynamicCursor( if( aServiceManager.is() ) { Reference< XSortedDynamicResultSetFactory > aSortFactory( aServiceManager->createInstance( - rtl::OUString::createFromAscii( "com.sun.star.ucb.SortedDynamicResultSetFactory" )), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SortedDynamicResultSetFactory"))), UNO_QUERY ); aResult = aSortFactory->createSortedDynamicResultSet( aOrigCursor, @@ -1057,7 +1057,7 @@ Reference< XDynamicResultSet > Content::createSortedDynamicCursor( if( aServiceManager.is() ) { Reference< XSortedDynamicResultSetFactory > aSortFactory( aServiceManager->createInstance( - rtl::OUString::createFromAscii( "com.sun.star.ucb.SortedDynamicResultSetFactory" )), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SortedDynamicResultSetFactory"))), UNO_QUERY ); aResult = aSortFactory->createSortedDynamicResultSet( aOrigCursor, @@ -1097,7 +1097,7 @@ Reference< XResultSet > Content::createSortedCursor( if( aServiceManager.is() ) { Reference< XSortedDynamicResultSetFactory > aSortFactory( aServiceManager->createInstance( - rtl::OUString::createFromAscii( "com.sun.star.ucb.SortedDynamicResultSetFactory" )), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SortedDynamicResultSetFactory"))), UNO_QUERY ); aDynResult = aSortFactory->createSortedDynamicResultSet( aDynSet, @@ -1151,7 +1151,7 @@ Reference< XResultSet > Content::createSortedCursor( if( aServiceManager.is() ) { Reference< XSortedDynamicResultSetFactory > aSortFactory( aServiceManager->createInstance( - rtl::OUString::createFromAscii( "com.sun.star.ucb.SortedDynamicResultSetFactory" )), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SortedDynamicResultSetFactory"))), UNO_QUERY ); aDynResult = aSortFactory->createSortedDynamicResultSet( aDynSet, @@ -1198,7 +1198,7 @@ Reference< XInputStream > Content::openStream() aArg.Properties = Sequence< Property >( 0 ); // unused Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1223,7 +1223,7 @@ Reference< XInputStream > Content::openStreamNoLock() aArg.Properties = Sequence< Property >( 0 ); // unused Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1248,7 +1248,7 @@ Reference< XStream > Content::openWriteableStream() aArg.Properties = Sequence< Property >( 0 ); // unused Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1273,7 +1273,7 @@ Reference< XStream > Content::openWriteableStreamNoLock() aArg.Properties = Sequence< Property >( 0 ); // unused Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1296,7 +1296,7 @@ sal_Bool Content::openStream( const Reference< XActiveDataSink >& rSink ) aArg.Properties = Sequence< Property >( 0 ); // unused Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1319,7 +1319,7 @@ sal_Bool Content::openStream( const Reference< XOutputStream >& rStream ) aArg.Properties = Sequence< Property >( 0 ); // unused Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "open" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("open")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1338,7 +1338,7 @@ void Content::writeStream( const Reference< XInputStream >& rStream, aArg.ReplaceExisting = bReplaceExisting; Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "insert" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("insert")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aArg; @@ -1354,7 +1354,7 @@ Sequence< ContentInfo > Content::queryCreatableContentsInfo() // First, try it using "CreatableContentsInfo" property -> the "new" way. Sequence< ContentInfo > aInfo; if ( getPropertyValue( - rtl::OUString::createFromAscii( "CreatableContentsInfo" ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CreatableContentsInfo")) ) >>= aInfo ) return aInfo; @@ -1415,7 +1415,7 @@ sal_Bool Content::insertNewContent( const rtl::OUString& rContentType, aInfo.Attributes = 0; Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "createNewContent" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("createNewContent")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aInfo; @@ -1449,7 +1449,7 @@ sal_Bool Content::insertNewContent( const rtl::OUString& rContentType, Content aNewContent( xNew, m_xImpl->getEnvironment() ); aNewContent.setPropertyValues( rPropertyNames, rPropertyValues ); - aNewContent.executeCommand( rtl::OUString::createFromAscii( "insert" ), + aNewContent.executeCommand( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("insert")), makeAny( InsertCommandArgument( rData.is() ? rData : new EmptyInputStream, @@ -1478,7 +1478,7 @@ sal_Bool Content::insertNewContent( const rtl::OUString& rContentType, aInfo.Attributes = 0; Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "createNewContent" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("createNewContent")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aInfo; @@ -1512,7 +1512,7 @@ sal_Bool Content::insertNewContent( const rtl::OUString& rContentType, Content aNewContent( xNew, m_xImpl->getEnvironment() ); aNewContent.setPropertyValues( nPropertyHandles, rPropertyValues ); - aNewContent.executeCommand( rtl::OUString::createFromAscii( "insert" ), + aNewContent.executeCommand( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("insert")), makeAny( InsertCommandArgument( rData.is() ? rData : new EmptyInputStream, @@ -1582,7 +1582,7 @@ sal_Bool Content::transferContent( const Content& rSourceContent, rTitle, nNameClashAction ); Command aCommand; - aCommand.Name = rtl::OUString::createFromAscii( "globalTransfer" ); + aCommand.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("globalTransfer")); aCommand.Handle = -1; // n/a aCommand.Argument <<= aTransferArg; @@ -1595,7 +1595,7 @@ sal_Bool Content::isFolder() throw( CommandAbortedException, RuntimeException, Exception ) { sal_Bool bFolder = sal_False; - if ( getPropertyValue( rtl::OUString::createFromAscii( "IsFolder" ) ) + if ( getPropertyValue( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsFolder")) ) >>= bFolder ) return bFolder; @@ -1616,7 +1616,7 @@ sal_Bool Content::isDocument() throw( CommandAbortedException, RuntimeException, Exception ) { sal_Bool bDoc = sal_False; - if ( getPropertyValue( rtl::OUString::createFromAscii( "IsDocument" ) ) + if ( getPropertyValue( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsDocument")) ) >>= bDoc ) return bDoc; diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx index 8c26104a07b6..e805f2afcd74 100644 --- a/ucbhelper/source/client/proxydecider.cxx +++ b/ucbhelper/source/client/proxydecider.cxx @@ -742,14 +742,14 @@ void InternetProxyDecider_Impl::setNoProxyList( if ( nColonPos == -1 ) { // No port given, server pattern equals current token - aPort = rtl::OUString::createFromAscii( "*" ); + aPort = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("*")); if ( aToken.indexOf( '*' ) == -1 ) { // pattern describes exactly one server aServer = aToken; } - aToken += rtl::OUString::createFromAscii( ":*" ); + aToken += rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(":*")); } else { diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index 9f2f97d558fd..d2c8296e0b2e 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -309,7 +309,7 @@ XTYPEPROVIDER_IMPL_9( ResultSet, //========================================================================= XSERVICEINFO_NOFACTORY_IMPL_1( ResultSet, - rtl::OUString::createFromAscii( "ResultSet" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ResultSet")), rtl::OUString::createFromAscii( RESULTSET_SERVICE_NAME ) ); //========================================================================= @@ -1358,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(); @@ -1389,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(); } @@ -1421,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 ) @@ -1447,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 ) @@ -1536,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 @@ -1552,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 -- cgit From ded1f1b445f5bb6d65509638047787cef20d382b Mon Sep 17 00:00:00 2001 From: Gert Faller Date: Thu, 25 Nov 2010 21:51:15 +0100 Subject: RTL_CONSTASCII_USTRINGPARAM in libs-gui 19 --- ucbhelper/source/client/content.cxx | 48 ++++++++++++------------- ucbhelper/source/client/contentbroker.cxx | 8 ++--- ucbhelper/source/client/proxydecider.cxx | 34 +++++++++--------- ucbhelper/source/provider/propertyvalueset.cxx | 4 +-- ucbhelper/source/provider/provconf.cxx | 4 +-- ucbhelper/source/provider/providerhelper.cxx | 4 +-- ucbhelper/source/provider/resultset.cxx | 2 +- ucbhelper/source/provider/resultsethelper.cxx | 12 +++---- ucbhelper/source/provider/resultsetmetadata.cxx | 4 +-- 9 files changed, 60 insertions(+), 60 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 60868c4fd973..3592049c95f4 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -227,9 +227,9 @@ static void ensureContentProviderForURL( const ContentBroker & rBroker, if ( !xMgr.is() ) { throw RuntimeException( - rtl::OUString::createFromAscii( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "UCB does not implement mandatory interface " - "XContentProviderManager!" ), + "XContentProviderManager!" )), Reference< XInterface >() ); } else @@ -239,8 +239,8 @@ static void ensureContentProviderForURL( const ContentBroker & rBroker, if ( !xProv.is() ) { throw ContentCreationException( - rtl::OUString::createFromAscii( - "No Content Provider available for given URL!" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "No Content Provider available for given URL!" )), Reference< XInterface >(), ContentCreationError_NO_CONTENT_PROVIDER ); } @@ -269,9 +269,9 @@ static ContentBroker* getContentBroker( bool bThrow ) { if ( bThrow ) throw RuntimeException( - rtl::OUString::createFromAscii( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "UCB does not implement mandatory interface " - "XContentProviderManager!" ), + "XContentProviderManager!" )), Reference< XInterface >() ); } else @@ -307,8 +307,8 @@ static Reference< XContentIdentifier > getContentIdentifier( ensureContentProviderForURL( rBroker, rURL ); throw ContentCreationException( - rtl::OUString::createFromAscii( - "Unable to create Content Identifier!" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "Unable to create Content Identifier!" )), Reference< XInterface >(), ContentCreationError_IDENTIFIER_CREATION_FAILED ); } @@ -317,9 +317,9 @@ static Reference< XContentIdentifier > getContentIdentifier( { if ( bThrow ) throw RuntimeException( - rtl::OUString::createFromAscii( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "UCB does not implement mandatory interface " - "XContentIdentifierFactory!" ), + "XContentIdentifierFactory!" )), Reference< XInterface >() ); } @@ -357,8 +357,8 @@ static Reference< XContent > getContent( ensureContentProviderForURL( rBroker, xId->getContentIdentifier() ); throw ContentCreationException( - rtl::OUString::createFromAscii( - "Unable to create Content! " ) + msg, + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "Unable to create Content! " )) + msg, Reference< XInterface >(), ContentCreationError_CONTENT_CREATION_FAILED ); } @@ -367,9 +367,9 @@ static Reference< XContent > getContent( { if ( bThrow ) throw RuntimeException( - rtl::OUString::createFromAscii( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "UCB does not implement mandatory interface " - "XContentProvider!" ), + "XContentProvider!" )), Reference< XInterface >() ); } @@ -732,9 +732,9 @@ Sequence< Any > Content::setPropertyValues( { ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - rtl::OUString::createFromAscii( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Length of property names sequence and value " - "sequence are unequal!" ), + "sequence are unequal!" )), get(), -1 ) ), m_xImpl->getEnvironment() ); @@ -780,9 +780,9 @@ Sequence< Any > Content::setPropertyValues( { ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - rtl::OUString::createFromAscii( + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "Length of property handles sequence and value " - "sequence are unequal!" ), + "sequence are unequal!" )), get(), -1 ) ), m_xImpl->getEnvironment() ); @@ -1567,8 +1567,8 @@ sal_Bool Content::transferContent( const Content& rSourceContent, default: ucbhelper::cancelCommandExecution( makeAny( IllegalArgumentException( - rtl::OUString::createFromAscii( - "Unknown transfer operation!" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "Unknown transfer operation!" )), get(), -1 ) ), m_xImpl->getEnvironment() ); @@ -1601,8 +1601,8 @@ sal_Bool Content::isFolder() ucbhelper::cancelCommandExecution( makeAny( UnknownPropertyException( - rtl::OUString::createFromAscii( - "Unable to retreive value of property 'IsFolder'!" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "Unable to retreive value of property 'IsFolder'!" )), get() ) ), m_xImpl->getEnvironment() ); @@ -1622,8 +1622,8 @@ sal_Bool Content::isDocument() ucbhelper::cancelCommandExecution( makeAny( UnknownPropertyException( - rtl::OUString::createFromAscii( - "Unable to retreive value of property 'IsDocument'!" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "Unable to retreive value of property 'IsDocument'!" )), get() ) ), m_xImpl->getEnvironment() ); diff --git a/ucbhelper/source/client/contentbroker.cxx b/ucbhelper/source/client/contentbroker.cxx index cc5f6f8280e0..4eef68226b06 100644 --- a/ucbhelper/source/client/contentbroker.cxx +++ b/ucbhelper/source/client/contentbroker.cxx @@ -285,8 +285,8 @@ bool ContentBroker_Impl::initialize() try { xIfc = m_xSMgr->createInstance( - OUString::createFromAscii( - "com.sun.star.ucb.UniversalContentBroker" ) ); + OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.ucb.UniversalContentBroker" )) ); } catch ( Exception const & ) { @@ -319,8 +319,8 @@ bool ContentBroker_Impl::initialize() try { xIfc = m_xSMgr->createInstanceWithArguments( - OUString::createFromAscii( - "com.sun.star.ucb.UniversalContentBroker" ), + OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.ucb.UniversalContentBroker" )), m_aArguments ); } catch ( Exception const & ) diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx index e805f2afcd74..b336e74afd94 100644 --- a/ucbhelper/source/client/proxydecider.cxx +++ b/ucbhelper/source/client/proxydecider.cxx @@ -267,17 +267,17 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( uno::Reference< lang::XMultiServiceFactory > xConfigProv( rxSMgr->createInstance( - rtl::OUString::createFromAscii( - "com.sun.star.configuration.ConfigurationProvider" ) ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.configuration.ConfigurationProvider" )) ), uno::UNO_QUERY ); uno::Sequence< uno::Any > aArguments( 1 ); - aArguments[ 0 ] <<= rtl::OUString::createFromAscii( CONFIG_ROOT_KEY ); + aArguments[ 0 ] <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( CONFIG_ROOT_KEY )); uno::Reference< uno::XInterface > xInterface( xConfigProv->createInstanceWithArguments( - rtl::OUString::createFromAscii( - "com.sun.star.configuration.ConfigurationAccess" ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.configuration.ConfigurationAccess" )), aArguments ) ); OSL_ENSURE( xInterface.is(), @@ -295,8 +295,8 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( try { if ( !( xNameAccess->getByName( - rtl::OUString::createFromAscii( - PROXY_TYPE_KEY ) ) >>= m_nProxyType ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + PROXY_TYPE_KEY )) ) >>= m_nProxyType ) ) { OSL_ENSURE( sal_False, "InternetProxyDecider - " @@ -314,8 +314,8 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( try { if ( !( xNameAccess->getByName( - rtl::OUString::createFromAscii( - NO_PROXY_LIST_KEY ) ) >>= aNoProxyList ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + NO_PROXY_LIST_KEY )) ) >>= aNoProxyList ) ) { OSL_ENSURE( sal_False, "InternetProxyDecider - " @@ -334,8 +334,8 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( try { if ( !( xNameAccess->getByName( - rtl::OUString::createFromAscii( - HTTP_PROXY_NAME_KEY ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + HTTP_PROXY_NAME_KEY )) ) >>= m_aHttpProxy.aName ) ) { OSL_ENSURE( sal_False, @@ -354,8 +354,8 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( try { uno::Any aValue = xNameAccess->getByName( - rtl::OUString::createFromAscii( - HTTP_PROXY_PORT_KEY ) ); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + HTTP_PROXY_PORT_KEY )) ); if ( aValue.hasValue() && !( aValue >>= m_aHttpProxy.nPort ) ) { @@ -377,8 +377,8 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( try { if ( !( xNameAccess->getByName( - rtl::OUString::createFromAscii( - FTP_PROXY_NAME_KEY ) ) + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + FTP_PROXY_NAME_KEY )) ) >>= m_aFtpProxy.aName ) ) { OSL_ENSURE( sal_False, @@ -397,8 +397,8 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( try { uno::Any aValue = xNameAccess->getByName( - rtl::OUString::createFromAscii( - FTP_PROXY_PORT_KEY ) ); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + FTP_PROXY_PORT_KEY )) ); if ( aValue.hasValue() && !( aValue >>= m_aFtpProxy.nPort ) ) { diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx index ab479372dc9f..c0d5f5ce1cb3 100644 --- a/ucbhelper/source/provider/propertyvalueset.cxx +++ b/ucbhelper/source/provider/propertyvalueset.cxx @@ -666,8 +666,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(), diff --git a/ucbhelper/source/provider/provconf.cxx b/ucbhelper/source/provider/provconf.cxx index 9e58ba5006e1..542ddf9351ae 100644 --- a/ucbhelper/source/provider/provconf.cxx +++ b/ucbhelper/source/provider/provconf.cxx @@ -108,8 +108,8 @@ bool getContentProviderData( { uno::Reference< lang::XMultiServiceFactory > xConfigProv( rServiceMgr->createInstance( - rtl::OUString::createFromAscii( - "com.sun.star.configuration.ConfigurationProvider" ) ), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.configuration.ConfigurationProvider" )) ), uno::UNO_QUERY ); if ( !xConfigProv.is() ) diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx index 359e5c952463..9a70249c33da 100644 --- a/ucbhelper/source/provider/providerhelper.cxx +++ b/ucbhelper/source/provider/providerhelper.cxx @@ -326,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(), diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx index d2c8296e0b2e..b39d6aa886a6 100644 --- a/ucbhelper/source/provider/resultset.cxx +++ b/ucbhelper/source/provider/resultset.cxx @@ -310,7 +310,7 @@ XTYPEPROVIDER_IMPL_9( ResultSet, XSERVICEINFO_NOFACTORY_IMPL_1( ResultSet, rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ResultSet")), - rtl::OUString::createFromAscii( RESULTSET_SERVICE_NAME ) ); + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( RESULTSET_SERVICE_NAME )) ); //========================================================================= // diff --git a/ucbhelper/source/provider/resultsethelper.cxx b/ucbhelper/source/provider/resultsethelper.cxx index a508b47818c9..ac6798e7450e 100644 --- a/ucbhelper/source/provider/resultsethelper.cxx +++ b/ucbhelper/source/provider/resultsethelper.cxx @@ -117,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 )) ); //========================================================================= // @@ -273,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 & ) diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx index d7697fb92533..ceb73a994412 100644 --- a/ucbhelper/source/provider/resultsetmetadata.cxx +++ b/ucbhelper/source/provider/resultsetmetadata.cxx @@ -412,8 +412,8 @@ 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() ) { -- cgit From 87cc602aea3c50019d18cdcf14c2bd2d669b0005 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 24 Dec 2010 13:31:59 +0000 Subject: cppcheck: prefer prefix variant --- ucbhelper/source/client/proxydecider.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx index b336e74afd94..7d722b9247ab 100644 --- a/ucbhelper/source/client/proxydecider.cxx +++ b/ucbhelper/source/client/proxydecider.cxx @@ -113,7 +113,7 @@ public: rValue = (*it).second; return true; } - it++; + ++it; } return false; } @@ -503,7 +503,7 @@ bool InternetProxyDecider_Impl::shouldUseProxy( const rtl::OUString & rHost, if ( (*it).first.Matches( aHostAndPort ) ) return false; } - it++; + ++it; } return true; -- cgit From e99fcbe58ef7533da06ee4658a4ee2cde4df58ea Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 3 Feb 2011 16:55:17 -0700 Subject: Bulk move libs-gui to boost unordered containers --- ucbhelper/source/provider/contenthelper.cxx | 4 ++-- ucbhelper/source/provider/providerhelper.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index d95d48b40d44..dfb91b4642c2 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -34,7 +34,7 @@ *************************************************************************/ -#include +#include #include #include #include @@ -102,7 +102,7 @@ struct hashPtr } }; -typedef std::hash_map +typedef boost::unordered_map < XPropertiesChangeListenerPtr, PropertyEventSequence*, diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx index 9a70249c33da..d418005eb439 100644 --- a/ucbhelper/source/provider/providerhelper.cxx +++ b/ucbhelper/source/provider/providerhelper.cxx @@ -35,7 +35,7 @@ *************************************************************************/ -#include +#include #include #include #include @@ -77,7 +77,7 @@ struct hashString } }; -typedef std::hash_map +typedef boost::unordered_map < rtl::OUString, uno::WeakReference< ucb::XContent >, -- cgit From da84e4dc931f17f87f26affcbe90681f3061b560 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 27 Feb 2011 17:10:26 +0100 Subject: Remove "using namespace ::rtl" --- ucbhelper/source/client/commandenvironment.cxx | 1 - ucbhelper/source/client/contentbroker.cxx | 3 ++- ucbhelper/source/provider/commandenvironmentproxy.cxx | 1 - ucbhelper/source/provider/contentidentifier.cxx | 3 ++- ucbhelper/source/provider/propertyvalueset.cxx | 2 +- ucbhelper/source/provider/resultsetmetadata.cxx | 3 ++- 6 files changed, 7 insertions(+), 6 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/client/commandenvironment.cxx b/ucbhelper/source/client/commandenvironment.cxx index 16c72aa833e5..7824e2b378fb 100644 --- a/ucbhelper/source/client/commandenvironment.cxx +++ b/ucbhelper/source/client/commandenvironment.cxx @@ -45,7 +45,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 { diff --git a/ucbhelper/source/client/contentbroker.cxx b/ucbhelper/source/client/contentbroker.cxx index 4eef68226b06..8eb455ca0aeb 100644 --- a/ucbhelper/source/client/contentbroker.cxx +++ b/ucbhelper/source/client/contentbroker.cxx @@ -47,7 +47,8 @@ using namespace com::sun::star::lang; using namespace com::sun::star::ucb; using namespace com::sun::star::uno; -using namespace rtl; + +using ::rtl::OUString; namespace { diff --git a/ucbhelper/source/provider/commandenvironmentproxy.cxx b/ucbhelper/source/provider/commandenvironmentproxy.cxx index 533e5f6080e1..7e3f10047812 100644 --- a/ucbhelper/source/provider/commandenvironmentproxy.cxx +++ b/ucbhelper/source/provider/commandenvironmentproxy.cxx @@ -46,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 { diff --git a/ucbhelper/source/provider/contentidentifier.cxx b/ucbhelper/source/provider/contentidentifier.cxx index 16bef11bd5a5..71db204a30b8 100644 --- a/ucbhelper/source/provider/contentidentifier.cxx +++ b/ucbhelper/source/provider/contentidentifier.cxx @@ -39,11 +39,12 @@ #include #include -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 { diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx index c0d5f5ce1cb3..d73dabd9573c 100644 --- a/ucbhelper/source/provider/propertyvalueset.cxx +++ b/ucbhelper/source/provider/propertyvalueset.cxx @@ -56,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 { diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx index ceb73a994412..80b3bc12c51b 100644 --- a/ucbhelper/source/provider/resultsetmetadata.cxx +++ b/ucbhelper/source/provider/resultsetmetadata.cxx @@ -56,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 { -- cgit From d86e9a3906b5c2c51a7a04dac0a63c9f74196991 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 12 Mar 2011 11:47:36 +0100 Subject: Move OSL_ENSURE(false,...) to OSL_FAIL(...) --- ucbhelper/source/provider/configureucb.cxx | 7 +++---- ucbhelper/source/provider/provconf.cxx | 33 ++++++++++-------------------- 2 files changed, 14 insertions(+), 26 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/provider/configureucb.cxx b/ucbhelper/source/provider/configureucb.cxx index 2b858d614c78..ae30c6b5b350 100644 --- a/ucbhelper/source/provider/configureucb.cxx +++ b/ucbhelper/source/provider/configureucb.cxx @@ -174,14 +174,14 @@ configureUcb( if (rArguments.getLength() < 2 || !(rArguments[0] >>= aKey1) || !(rArguments[1] >>= aKey2)) { - OSL_ENSURE(false, "ucb::configureUcb(): Bad arguments"); + OSL_FAIL("ucb::configureUcb(): Bad arguments"); return false; } ContentProviderDataList aData; if (!getContentProviderData(rServiceFactory, aKey1, aKey2, aData)) { - OSL_ENSURE(false, "ucb::configureUcb(): No configuration"); + OSL_FAIL("ucb::configureUcb(): No configuration"); return false; } @@ -207,8 +207,7 @@ configureUcb( pInfos->push_back(aInfo); } else - OSL_ENSURE(false, - "ucb::configureUcb(): Bad argument placeholders"); + OSL_FAIL("ucb::configureUcb(): Bad argument placeholders"); } return true; diff --git a/ucbhelper/source/provider/provconf.cxx b/ucbhelper/source/provider/provconf.cxx index 542ddf9351ae..3e89f9f70b4b 100644 --- a/ucbhelper/source/provider/provconf.cxx +++ b/ucbhelper/source/provider/provconf.cxx @@ -99,8 +99,7 @@ bool getContentProviderData( { if ( !rServiceMgr.is() || !rKey1.getLength() || !rKey2.getLength() ) { - OSL_ENSURE( false, - "getContentProviderData - Invalid argument!" ); + OSL_FAIL( "getContentProviderData - Invalid argument!" ); return false; } @@ -114,8 +113,7 @@ bool getContentProviderData( if ( !xConfigProv.is() ) { - OSL_ENSURE( false, - "getContentProviderData - No config provider!" ); + OSL_FAIL( "getContentProviderData - No config provider!" ); return false; } @@ -141,8 +139,7 @@ bool getContentProviderData( if ( !xInterface.is() ) { - OSL_ENSURE( false, - "getContentProviderData - No config access!" ); + OSL_FAIL( "getContentProviderData - No config access!" ); return false; } @@ -151,8 +148,7 @@ bool getContentProviderData( if ( !xNameAccess.is() ) { - OSL_ENSURE( false, - "getContentProviderData - No XNameAccess!" ); + OSL_FAIL( "getContentProviderData - No XNameAccess!" ); return false; } @@ -167,8 +163,7 @@ bool getContentProviderData( if ( !xHierNameAccess.is() ) { - OSL_ENSURE( false, - "getContentProviderData - " + OSL_FAIL( "getContentProviderData - " "No XHierarchicalNameAccess!" ); return false; } @@ -192,8 +187,7 @@ bool getContentProviderData( if ( !( xHierNameAccess->getByHierarchicalName( aKeyBuffer.makeStringAndClear() ) >>= aValue ) ) { - OSL_ENSURE( false, - "getContentProviderData - " + OSL_FAIL( "getContentProviderData - " "Error getting item value!" ); continue; } @@ -207,8 +201,7 @@ bool getContentProviderData( if ( !( xHierNameAccess->getByHierarchicalName( aKeyBuffer.makeStringAndClear() ) >>= aValue ) ) { - OSL_ENSURE( false, - "getContentProviderData - " + OSL_FAIL( "getContentProviderData - " "Error getting item value!" ); continue; } @@ -222,8 +215,7 @@ bool getContentProviderData( if ( !( xHierNameAccess->getByHierarchicalName( aKeyBuffer.makeStringAndClear() ) >>= aValue ) ) { - OSL_ENSURE( false, - "getContentProviderData - " + OSL_FAIL( "getContentProviderData - " "Error getting item value!" ); continue; } @@ -237,8 +229,7 @@ bool getContentProviderData( { // getByHierarchicalName - OSL_ENSURE( false, - "getContentProviderData - " + OSL_FAIL( "getContentProviderData - " "caught NoSuchElementException!" ); } } @@ -246,16 +237,14 @@ bool getContentProviderData( } catch ( uno::RuntimeException& ) { - OSL_ENSURE( false, - "getContentProviderData - caught RuntimeException!" ); + OSL_FAIL( "getContentProviderData - caught RuntimeException!" ); return false; } catch ( uno::Exception& ) { // createInstance, createInstanceWithArguments - OSL_ENSURE( false, - "getContentProviderData - caught Exception!" ); + OSL_FAIL( "getContentProviderData - caught Exception!" ); return false; } -- cgit From 3d874bdf409ca4a099853b30aeb9932e45c56f60 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 19 Mar 2011 14:11:09 +0100 Subject: Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...) --- ucbhelper/source/client/content.cxx | 6 ++-- ucbhelper/source/client/interceptedinteraction.cxx | 2 +- ucbhelper/source/client/proxydecider.cxx | 32 ++++++++-------------- .../source/provider/cancelcommandexecution.cxx | 4 +-- ucbhelper/source/provider/contenthelper.cxx | 17 ++++-------- ucbhelper/source/provider/propertyvalueset.cxx | 7 ++--- .../simplecertificatevalidationrequest.cxx | 2 +- .../source/provider/simpleinteractionrequest.cxx | 3 +- 8 files changed, 27 insertions(+), 46 deletions(-) (limited to 'ucbhelper/source') diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index 3592049c95f4..7f73b6492d55 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -1533,8 +1533,7 @@ sal_Bool Content::transferContent( const Content& rSourceContent, ContentBroker* pBroker = ContentBroker::get(); if ( !pBroker ) { - OSL_ENSURE( sal_False, - "Content::transferContent - No Content Broker!" ); + OSL_FAIL( "Content::transferContent - No Content Broker!" ); return sal_False; } @@ -1542,8 +1541,7 @@ sal_Bool Content::transferContent( const Content& rSourceContent, pBroker->getCommandProcessorInterface() ); if ( !xCmdProc.is() ) { - OSL_ENSURE( sal_False, - "Content::transferContent - No XCommandProcessor!" ); + OSL_FAIL( "Content::transferContent - No XCommandProcessor!" ); return sal_False; } diff --git a/ucbhelper/source/client/interceptedinteraction.cxx b/ucbhelper/source/client/interceptedinteraction.cxx index 0556e181c48b..0d774b29c793 100644 --- a/ucbhelper/source/client/interceptedinteraction.cxx +++ b/ucbhelper/source/client/interceptedinteraction.cxx @@ -130,7 +130,7 @@ void InterceptedInteraction::impl_handleDefault(const ::com::sun::star::uno::Ref // Runtime error! The defined continuation could not be located // inside the set of available containuations of the incoming request. // Whats wrong - the interception list or the request? - OSL_ENSURE(sal_False, "InterceptedInteraction::handle()\nCould intercept this interaction request - but cant locate the right continuation!"); + OSL_FAIL("InterceptedInteraction::handle()\nCould intercept this interaction request - but cant locate the right continuation!"); } break; diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx index beb1b194fac2..4f99baacbb2d 100644 --- a/ucbhelper/source/client/proxydecider.cxx +++ b/ucbhelper/source/client/proxydecider.cxx @@ -260,8 +260,7 @@ bool getConfigStringValue( if ( !( xNameAccess->getByName( rtl::OUString::createFromAscii( key ) ) >>= value ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - " + OSL_FAIL( "InternetProxyDecider - " "Error getting config item value!" ); return false; } @@ -289,8 +288,7 @@ bool getConfigInt32Value( rtl::OUString::createFromAscii( key ) ); if ( aValue.hasValue() && !( aValue >>= value ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - " + OSL_FAIL( "InternetProxyDecider - " "Error getting config item value!" ); return false; } @@ -406,7 +404,7 @@ InternetProxyDecider_Impl::InternetProxyDecider_Impl( catch ( uno::Exception const & ) { // createInstance, createInstanceWithArguments - OSL_ENSURE( sal_False, "InternetProxyDecider - Exception!" ); + OSL_FAIL( "InternetProxyDecider - Exception!" ); } } @@ -603,8 +601,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( { if ( !( rElem.Element >>= m_nProxyType ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } } @@ -614,8 +611,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( rtl::OUString aNoProxyList; if ( !( rElem.Element >>= aNoProxyList ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } @@ -626,8 +622,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( { if ( !( rElem.Element >>= m_aHttpProxy.aName ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } } @@ -636,8 +631,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( { if ( !( rElem.Element >>= m_aHttpProxy.nPort ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } @@ -649,8 +643,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( { if ( !( rElem.Element >>= m_aHttpsProxy.aName ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } } @@ -659,8 +652,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( { if ( !( rElem.Element >>= m_aHttpsProxy.nPort ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } @@ -672,8 +664,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( { if ( !( rElem.Element >>= m_aFtpProxy.aName ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } } @@ -682,8 +673,7 @@ void SAL_CALL InternetProxyDecider_Impl::changesOccurred( { if ( !( rElem.Element >>= m_aFtpProxy.nPort ) ) { - OSL_ENSURE( sal_False, - "InternetProxyDecider - changesOccurred - " + OSL_FAIL( "InternetProxyDecider - changesOccurred - " "Error getting config item value!" ); } } diff --git a/ucbhelper/source/provider/cancelcommandexecution.cxx b/ucbhelper/source/provider/cancelcommandexecution.cxx index 36694413d0fa..457c1b4e81e7 100644 --- a/ucbhelper/source/provider/cancelcommandexecution.cxx +++ b/ucbhelper/source/provider/cancelcommandexecution.cxx @@ -84,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(); } @@ -122,7 +122,7 @@ 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(); } diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx index dfb91b4642c2..6a5073750b9a 100644 --- a/ucbhelper/source/provider/contenthelper.cxx +++ b/ucbhelper/source/provider/contenthelper.cxx @@ -597,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; } @@ -664,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; } @@ -692,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; } diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx index d73dabd9573c..c6ab550237c1 100644 --- a/ucbhelper/source/provider/propertyvalueset.cxx +++ b/ucbhelper/source/provider/propertyvalueset.cxx @@ -164,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 \ { \ @@ -480,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 { @@ -577,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; } diff --git a/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx b/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx index d3a7259d91cb..16946664e518 100644 --- a/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx +++ b/ucbhelper/source/provider/simplecertificatevalidationrequest.cxx @@ -83,7 +83,7 @@ sal_Int32 SimpleCertificateValidationRequest::getResponse() const if ( xDisapprove.is() ) return 8; - OSL_ENSURE( sal_False, "CertificateValidationRequest - Unknown continuation!" ); + OSL_FAIL( "CertificateValidationRequest - Unknown continuation!" ); } return 0; } diff --git a/ucbhelper/source/provider/simpleinteractionrequest.cxx b/ucbhelper/source/provider/simpleinteractionrequest.cxx index e178b695da15..69e833434b54 100644 --- a/ucbhelper/source/provider/simpleinteractionrequest.cxx +++ b/ucbhelper/source/provider/simpleinteractionrequest.cxx @@ -125,8 +125,7 @@ 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; } -- cgit