Kaydet (Commit) 1a072862 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

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
üst 07071225
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: layerwriter.cxx,v $ * $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 Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -74,7 +74,7 @@ namespace configmgr ...@@ -74,7 +74,7 @@ namespace configmgr
typedef uno::Reference< script::XTypeConverter > TypeConverter; typedef uno::Reference< script::XTypeConverter > TypeConverter;
static inline 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"); OSL_ENSURE(_xSvcFactory.is(),"Cannot create Write Formatter without a ServiceManager");
...@@ -82,13 +82,6 @@ namespace configmgr ...@@ -82,13 +82,6 @@ namespace configmgr
return TypeConverter::query(_xSvcFactory->createInstance(k_sTCVService)); 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 static
void translateSAXException( sax::SAXException & aSAXException, void translateSAXException( sax::SAXException & aSAXException,
...@@ -540,7 +533,7 @@ namespace configmgr ...@@ -540,7 +533,7 @@ namespace configmgr
aValueFormatter.addValueAttributes(m_aFormatter); aValueFormatter.addValueAttributes(m_aFormatter);
OUString sTag = m_aFormatter.getElementTag(); OUString sTag = m_aFormatter.getElementTag();
OUString sContent = aValueFormatter.getContent( asTCV(this->m_xTCV) ); OUString sContent = aValueFormatter.getContent( this->m_xTCV );
SaxHandler xOut = getWriteHandler(); SaxHandler xOut = getWriteHandler();
xOut->startElement(sTag, m_aFormatter.getElementAttributes()); xOut->startElement(sTag, m_aFormatter.getElementAttributes());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment