From 709040e0adf0a533700576b14c8498f986a601e9 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Tue, 30 May 2017 10:57:29 +0200 Subject: remove duplicate 'using namespace' Change-Id: I7f8828f677cfb588135ff75c03ffb75895773440 Reviewed-on: https://gerrit.libreoffice.org/38201 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/fmcomp/fmgridif.cxx | 1 - svx/source/fmcomp/xmlexchg.cxx | 1 - svx/source/form/datanavi.cxx | 2 -- svx/source/form/fmPropBrw.cxx | 17 ++++++++--------- 4 files changed, 8 insertions(+), 13 deletions(-) (limited to 'svx/source') diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index 343ad110a2a5..ee4f1c23aa84 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -1127,7 +1127,6 @@ sal_Int64 SAL_CALL FmXGridPeer::getSomething( const Sequence< sal_Int8 >& _rIden void FmXGridPeer::disposing(const EventObject& e) { -using namespace ::com::sun::star::util; bool bKnownSender = false; Reference< XIndexContainer > xCols( e.Source, UNO_QUERY ); diff --git a/svx/source/fmcomp/xmlexchg.cxx b/svx/source/fmcomp/xmlexchg.cxx index c1cb11e17b8d..b543f431bd5f 100644 --- a/svx/source/fmcomp/xmlexchg.cxx +++ b/svx/source/fmcomp/xmlexchg.cxx @@ -50,7 +50,6 @@ namespace svx const OXFormsDescriptor &OXFormsTransferable::extractDescriptor( const TransferableDataHelper &_rData ) { using namespace ::com::sun::star::uno; - using namespace ::com::sun::star::datatransfer; Reference &transfer = const_cast &>(_rData.GetTransferable()); XTransferable *pInterface = transfer.get(); OXFormsTransferable& rThis = dynamic_cast(*pInterface); diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index cb9cb26a4d1e..0be72783d6c3 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -188,8 +188,6 @@ namespace svxform if(!xDataTypes.is()) return; - using namespace ::com::sun::star::uno; - ItemNode *pItemNode = static_cast(pSelected->GetUserData()); if ( !pItemNode ) diff --git a/svx/source/form/fmPropBrw.cxx b/svx/source/form/fmPropBrw.cxx index 2819be221ed4..e6abfa619dd4 100644 --- a/svx/source/form/fmPropBrw.cxx +++ b/svx/source/form/fmPropBrw.cxx @@ -69,10 +69,16 @@ #include using namespace ::com::sun::star; +using namespace ::com::sun::star::beans; +using namespace ::com::sun::star::container; +using namespace ::com::sun::star::form; +using namespace ::com::sun::star::form::inspection; +using namespace ::com::sun::star::frame; +using namespace ::com::sun::star::inspection; +using namespace ::com::sun::star::lang; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::util; -using namespace ::com::sun::star::inspection; -using namespace ::com::sun::star::form::inspection; +using namespace ::svxform; using ::com::sun::star::awt::XWindow; //= FmPropBrwMgr @@ -96,13 +102,6 @@ const long STD_WIN_SIZE_Y = 350; const long STD_MIN_SIZE_X = 250; const long STD_MIN_SIZE_Y = 250; -using namespace ::com::sun::star::uno; -using namespace ::com::sun::star::lang; -using namespace ::com::sun::star::form; -using namespace ::com::sun::star::frame; -using namespace ::com::sun::star::beans; -using namespace ::com::sun::star::container; -using namespace ::svxform; OUString GetUIHeadlineName(sal_Int16 nClassId, const Any& aUnoObj) { -- cgit