summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 22:35:23 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 22:35:23 +0000
commit93015681410e25242f4cc1bf5b6217688daeb47d (patch)
tree6432c8cd8df7e6eb166b4042e3088d92a319c279 /configmgr
parent7cf32c1eadf4bb97333a881c4214598a0285d634 (diff)
INTEGRATION: CWS warnings01 (1.8.4); FILE MERGED
2006/05/16 16:05:36 sb 1.8.4.3: #i65435# Fixed previous changes. 2006/02/14 10:17:44 cd 1.8.4.2: #i55991# Fix warnings for ms c++ compiler 2005/11/01 12:47:44 cd 1.8.4.1: #i53898# Warning free code for sun solaris compiler
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/xml/basicparser.cxx22
1 files changed, 8 insertions, 14 deletions
diff --git a/configmgr/source/xml/basicparser.cxx b/configmgr/source/xml/basicparser.cxx
index a767673592..04b99e2260 100644
--- a/configmgr/source/xml/basicparser.cxx
+++ b/configmgr/source/xml/basicparser.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: basicparser.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 04:37:58 $
+ * last change: $Author: hr $ $Date: 2006-06-19 23:35:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -59,7 +59,7 @@ namespace
typedef uno::Reference< script::XTypeConverter > TypeConverter;
static inline
- uno::Reference< uno::XInterface > createTCV(BasicParser::Context const & _xContext)
+ TypeConverter createTCV(BasicParser::Context const & _xContext)
{
OSL_ENSURE(_xContext.is(),"Cannot create Parser without a Context");
@@ -68,13 +68,6 @@ namespace
uno::Reference< lang::XMultiComponentFactory > xSvcFactory = _xContext->getServiceManager();
return TypeConverter::query(xSvcFactory->createInstanceWithContext(k_sTCVService,_xContext));
}
-
- 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());
- }
}
// -----------------------------------------------------------------------------
@@ -224,7 +217,7 @@ void SAL_CALL BasicParser::ignorableWhitespace( const OUString& aWhitespaces )
}
// -----------------------------------------------------------------------------
-void SAL_CALL BasicParser::processingInstruction( const OUString& aTarget, const OUString& aData )
+void SAL_CALL BasicParser::processingInstruction( const OUString& /*aTarget*/, const OUString& /*aData*/ )
throw (sax::SAXException, uno::RuntimeException)
{
OSL_DEBUG_ONLY( dbgUpdateLocation() );
@@ -240,8 +233,9 @@ void SAL_CALL BasicParser::setDocumentLocator( const uno::Reference< sax::XLocat
}
// -----------------------------------------------------------------------------
-void BasicParser::startNode( ElementInfo const & aInfo, const uno::Reference< sax::XAttributeList >& xAttribs )
+void BasicParser::startNode( ElementInfo const & aInfo, const uno::Reference< sax::XAttributeList >& /*xAttribs*/ )
{
+ { (void)aInfo; }
OSL_DEBUG_ONLY( dbgUpdateLocation() );
OSL_ENSURE( !isSkipping(), "While skipping, call startSkipping() instead of startNode()");
@@ -377,7 +371,7 @@ void BasicParser::startValueData(const uno::Reference< sax::XAttributeList >& xA
if (isInValueData())
raiseParseException( "Configuration XML Parser - Invalid Data: Unexpected element while parsing value data" );
- m_pValueData = new ValueData(m_aValueType, asTCV(m_xTypeConverter));
+ m_pValueData = new ValueData(m_aValueType, m_xTypeConverter);
m_pValueData->setIsNull( getDataParser().isNull(xAttribs) );
@@ -467,7 +461,7 @@ void BasicParser::endValueData()
}
// -----------------------------------------------------------------------------
-void BasicParser::startSkipping( const OUString& aName, const uno::Reference< sax::XAttributeList >& xAttribs )
+void BasicParser::startSkipping( const OUString& aName, const uno::Reference< sax::XAttributeList >& /*xAttribs*/ )
{
OSL_DEBUG_ONLY( dbgUpdateLocation() );