diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:36:17 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 22:36:17 +0000 |
commit | 8957abf7baebc8346e009b09d270b4e0219c0d75 (patch) | |
tree | 212019f90d8b9b994b6d60b71a85d75eee585332 /configmgr | |
parent | 06c3d7a1be648d46c2785b528633ff5d21dd310e (diff) |
INTEGRATION: CWS warnings01 (1.11.4); FILE MERGED
2006/05/23 23:01:06 sb 1.11.4.3: RESYNC: (1.11-1.12); FILE MERGED
2006/05/16 16:05:36 sb 1.11.4.2: #i65435# Fixed previous changes.
2006/02/14 10:17:45 cd 1.11.4.1: #i55991# Fix warnings for ms c++ compiler
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/source/xml/layerwriter.cxx | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/configmgr/source/xml/layerwriter.cxx b/configmgr/source/xml/layerwriter.cxx index 29c149c6f4..d0c2855483 100644 --- a/configmgr/source/xml/layerwriter.cxx +++ b/configmgr/source/xml/layerwriter.cxx @@ -4,9 +4,9 @@ * * $RCSfile: layerwriter.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: hr $ $Date: 2006-04-19 14:01:44 $ + * last change: $Author: hr $ $Date: 2006-06-19 23:36:17 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -74,7 +74,7 @@ namespace configmgr typedef uno::Reference< script::XTypeConverter > TypeConverter; static inline - uno::Reference< uno::XInterface > createTCV(LayerWriter::ServiceFactory const & _xSvcFactory) + TypeConverter createTCV(LayerWriter::ServiceFactory const & _xSvcFactory) { OSL_ENSURE(_xSvcFactory.is(),"Cannot create Write Formatter without a ServiceManager"); @@ -82,13 +82,6 @@ namespace configmgr return TypeConverter::query(_xSvcFactory->createInstance(k_sTCVService)); } - - static inline - TypeConverter asTCV(uno::Reference< uno::XInterface > const & _xTCV) - { - OSL_ASSERT(TypeConverter::query(_xTCV).get() == _xTCV.get()); - return static_cast< script::XTypeConverter * >(_xTCV.get()); - } // ----------------------------------------------------------------------------- static void translateSAXException( sax::SAXException & aSAXException, @@ -540,7 +533,7 @@ namespace configmgr aValueFormatter.addValueAttributes(m_aFormatter); OUString sTag = m_aFormatter.getElementTag(); - OUString sContent = aValueFormatter.getContent( asTCV(this->m_xTCV) ); + OUString sContent = aValueFormatter.getContent( this->m_xTCV ); SaxHandler xOut = getWriteHandler(); xOut->startElement(sTag, m_aFormatter.getElementAttributes()); |