[Libreoffice-commits] core.git: xmloff/source
Stephan Bergmann
sbergman at redhat.com
Mon Aug 11 07:09:08 PDT 2014
xmloff/source/forms/elementimport.cxx | 2 +-
xmloff/source/style/xmlbahdl.cxx | 4 ++--
xmloff/source/style/xmlexppr.cxx | 4 ++--
xmloff/source/text/txtparae.cxx | 4 ++--
xmloff/source/text/txtprhdl.cxx | 10 +++++-----
xmloff/source/transform/ChartOASISTContext.cxx | 2 +-
xmloff/source/transform/ChartOOoTContext.cxx | 2 +-
xmloff/source/transform/ControlOASISTContext.cxx | 2 +-
xmloff/source/transform/CreateElemTContext.cxx | 2 +-
xmloff/source/transform/DlgOASISTContext.cxx | 2 +-
xmloff/source/transform/EventOOoTContext.cxx | 2 +-
xmloff/source/transform/FormPropOASISTContext.cxx | 2 +-
xmloff/source/transform/FormPropOOoTContext.cxx | 2 +-
xmloff/source/transform/FrameOASISTContext.cxx | 2 +-
xmloff/source/transform/FrameOOoTContext.cxx | 4 ++--
xmloff/source/transform/MergeElemTContext.cxx | 4 ++--
xmloff/source/transform/OOo2Oasis.cxx | 6 +++---
xmloff/source/transform/PersMixedContentTContext.cxx | 6 +++---
xmloff/source/transform/StyleOASISTContext.cxx | 4 ++--
xmloff/source/transform/StyleOOoTContext.cxx | 6 +++---
xmloff/source/transform/TransformerBase.cxx | 4 ++--
xmloff/source/transform/TransformerContext.cxx | 4 ++--
22 files changed, 40 insertions(+), 40 deletions(-)
New commits:
commit 525d784796f89c31ec3e41b199c26a6e0444e329
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Aug 11 16:08:32 2014 +0200
-Werror,-Wundefined-bool-conversion
Change-Id: Icf4a55f7e76a723014a7b8b5f6b9350db7370dd9
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index dc461e8..54cf3e4 100644
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -1940,7 +1940,7 @@ namespace xmloff
SvXMLImportContext* OFormImport::implCreateControlWrapper(sal_uInt16 _nPrefix, const OUString& _rLocalName)
{
- OSL_ENSURE( !this, "illegal call to OFormImport::implCreateControlWrapper" );
+ OSL_ENSURE( false, "illegal call to OFormImport::implCreateControlWrapper" );
return new SvXMLImportContext(GetImport(), _nPrefix, _rLocalName );
}
diff --git a/xmloff/source/style/xmlbahdl.cxx b/xmloff/source/style/xmlbahdl.cxx
index 0b4c086..ac90a0b 100644
--- a/xmloff/source/style/xmlbahdl.cxx
+++ b/xmloff/source/style/xmlbahdl.cxx
@@ -812,13 +812,13 @@ XMLCompareOnlyPropHdl::~XMLCompareOnlyPropHdl()
bool XMLCompareOnlyPropHdl::importXML( const OUString&, Any&, const SvXMLUnitConverter& ) const
{
- DBG_ASSERT( !this, "importXML called for compare-only-property" );
+ DBG_ASSERT( false, "importXML called for compare-only-property" );
return false;
}
bool XMLCompareOnlyPropHdl::exportXML( OUString&, const Any&, const SvXMLUnitConverter& ) const
{
- DBG_ASSERT( !this, "exportXML called for compare-only-property" );
+ DBG_ASSERT( false, "exportXML called for compare-only-property" );
return false;
}
diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index 6f62661..22cfe8a 100644
--- a/xmloff/source/style/xmlexppr.cxx
+++ b/xmloff/source/style/xmlexppr.cxx
@@ -490,7 +490,7 @@ void FilterPropertiesInfo_Impl::FillPropertyStateArray(
catch( UnknownPropertyException& )
{
// might be a problem of getImplemenetationId
- OSL_ENSURE( !this, "unknown property in getPropertyValue" );
+ OSL_ENSURE( false, "unknown property in getPropertyValue" );
}
}
@@ -649,7 +649,7 @@ vector<XMLPropertyState> SvXMLExportPropertyMapper::_Filter(
catch( UnknownPropertyException& )
{
// might be a problem of getImplemenetationId
- OSL_ENSURE( !this, "unknown property in getPropertyStates" );
+ OSL_ENSURE( false, "unknown property in getPropertyStates" );
}
}
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index a542676..949acac 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -3153,14 +3153,14 @@ void XMLTextParagraphExport::_exportTextGraphic(
void XMLTextParagraphExport::_collectTextEmbeddedAutoStyles(const Reference < XPropertySet > & )
{
- DBG_ASSERT( !this, "no API implementation avialable" );
+ DBG_ASSERT( false, "no API implementation avialable" );
}
void XMLTextParagraphExport::_exportTextEmbedded(
const Reference < XPropertySet > &,
const Reference < XPropertySetInfo > & )
{
- DBG_ASSERT( !this, "no API implementation avialable" );
+ DBG_ASSERT( false, "no API implementation avialable" );
}
void XMLTextParagraphExport::exportEvents( const Reference < XPropertySet > & rPropSet )
diff --git a/xmloff/source/text/txtprhdl.cxx b/xmloff/source/text/txtprhdl.cxx
index ed63824..4cecc1b 100644
--- a/xmloff/source/text/txtprhdl.cxx
+++ b/xmloff/source/text/txtprhdl.cxx
@@ -300,7 +300,7 @@ bool XMLDropCapPropHdl_Impl::importXML(
Any&,
const SvXMLUnitConverter& ) const
{
- DBG_ASSERT( !this, "drop caps are an element import property" );
+ DBG_ASSERT( false, "drop caps are an element import property" );
return false;
}
@@ -309,7 +309,7 @@ bool XMLDropCapPropHdl_Impl::exportXML(
const Any&,
const SvXMLUnitConverter& ) const
{
- DBG_ASSERT( !this, "drop caps are an element export property" );
+ DBG_ASSERT( false, "drop caps are an element export property" );
return false;
}
@@ -707,7 +707,7 @@ bool XMLTextColumnsPropertyHandler::importXML(
Any&,
const SvXMLUnitConverter& ) const
{
- DBG_ASSERT( !this, "columns are an element import property" );
+ DBG_ASSERT( false, "columns are an element import property" );
return false;
}
@@ -716,7 +716,7 @@ bool XMLTextColumnsPropertyHandler::exportXML(
const Any&,
const SvXMLUnitConverter& ) const
{
- DBG_ASSERT( !this, "columns are an element export property" );
+ DBG_ASSERT( false, "columns are an element export property" );
return false;
}
@@ -758,7 +758,7 @@ bool XMLHoriMirrorPropHdl_Impl::exportXML(
const Any&,
const SvXMLUnitConverter& ) const
{
- DBG_ASSERT( !this, "HorMirror properyt shouldn't be exported" );
+ DBG_ASSERT( false, "HorMirror properyt shouldn't be exported" );
return false;
}
diff --git a/xmloff/source/transform/ChartOASISTContext.cxx b/xmloff/source/transform/ChartOASISTContext.cxx
index 1311a3e..3ec0748 100644
--- a/xmloff/source/transform/ChartOASISTContext.cxx
+++ b/xmloff/source/transform/ChartOASISTContext.cxx
@@ -111,7 +111,7 @@ void XMLChartOASISTransformerContext::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/ChartOOoTContext.cxx b/xmloff/source/transform/ChartOOoTContext.cxx
index bd92e1f..d35328a 100644
--- a/xmloff/source/transform/ChartOOoTContext.cxx
+++ b/xmloff/source/transform/ChartOOoTContext.cxx
@@ -116,7 +116,7 @@ void XMLChartOOoTransformerContext::StartElement(
--nAttrCount;
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/ControlOASISTContext.cxx b/xmloff/source/transform/ControlOASISTContext.cxx
index e04f331..0f1b361 100644
--- a/xmloff/source/transform/ControlOASISTContext.cxx
+++ b/xmloff/source/transform/ControlOASISTContext.cxx
@@ -132,7 +132,7 @@ void XMLControlOASISTransformerContext::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/CreateElemTContext.cxx b/xmloff/source/transform/CreateElemTContext.cxx
index 09d3b8d..e999997 100644
--- a/xmloff/source/transform/CreateElemTContext.cxx
+++ b/xmloff/source/transform/CreateElemTContext.cxx
@@ -101,7 +101,7 @@ void XMLCreateElemTransformerContext::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/DlgOASISTContext.cxx b/xmloff/source/transform/DlgOASISTContext.cxx
index fab011d..6bf2a17 100644
--- a/xmloff/source/transform/DlgOASISTContext.cxx
+++ b/xmloff/source/transform/DlgOASISTContext.cxx
@@ -90,7 +90,7 @@ void XMLDlgOASISTransformerContext::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/EventOOoTContext.cxx b/xmloff/source/transform/EventOOoTContext.cxx
index e3107ab..a1eb86a 100644
--- a/xmloff/source/transform/EventOOoTContext.cxx
+++ b/xmloff/source/transform/EventOOoTContext.cxx
@@ -194,7 +194,7 @@ void XMLEventOOoTransformerContext::StartElement(
case XML_ATACTION_COPY:
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/FormPropOASISTContext.cxx b/xmloff/source/transform/FormPropOASISTContext.cxx
index 50e61c7..d4d4021 100644
--- a/xmloff/source/transform/FormPropOASISTContext.cxx
+++ b/xmloff/source/transform/FormPropOASISTContext.cxx
@@ -160,7 +160,7 @@ void XMLFormPropOASISTransformerContext::StartElement(
--nAttrCount;
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/FormPropOOoTContext.cxx b/xmloff/source/transform/FormPropOOoTContext.cxx
index 83c1b8c..47b2df1 100644
--- a/xmloff/source/transform/FormPropOOoTContext.cxx
+++ b/xmloff/source/transform/FormPropOOoTContext.cxx
@@ -245,7 +245,7 @@ void XMLFormPropOOoTransformerContext::StartElement(
--nAttrCount;
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/FrameOASISTContext.cxx b/xmloff/source/transform/FrameOASISTContext.cxx
index 7cffc2a..10755f9 100644
--- a/xmloff/source/transform/FrameOASISTContext.cxx
+++ b/xmloff/source/transform/FrameOASISTContext.cxx
@@ -157,7 +157,7 @@ XMLTransformerContext *XMLFrameOASISTransformerContext::CreateChildContext(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/FrameOOoTContext.cxx b/xmloff/source/transform/FrameOOoTContext.cxx
index daaa221..b7f8f82 100644
--- a/xmloff/source/transform/FrameOOoTContext.cxx
+++ b/xmloff/source/transform/FrameOOoTContext.cxx
@@ -90,7 +90,7 @@ void XMLFrameOOoTransformerContext::StartElement(
--nAttrCount;
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
@@ -128,7 +128,7 @@ XMLTransformerContext *XMLFrameOOoTransformerContext::CreateChildContext(
nPrefix, rLocalName, rQName, rAttrList );
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/MergeElemTContext.cxx b/xmloff/source/transform/MergeElemTContext.cxx
index 7a5381c..d14a1be 100644
--- a/xmloff/source/transform/MergeElemTContext.cxx
+++ b/xmloff/source/transform/MergeElemTContext.cxx
@@ -267,7 +267,7 @@ XMLTransformerContext *XMLMergeElemTransformerContext::CreateChildContext(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
@@ -299,7 +299,7 @@ XMLTransformerContext *XMLMergeElemTransformerContext::CreateChildContext(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx
index 890a5f0..1568bb2 100644
--- a/xmloff/source/transform/OOo2Oasis.cxx
+++ b/xmloff/source/transform/OOo2Oasis.cxx
@@ -1383,7 +1383,7 @@ void XMLTabStopOOoTContext_Impl::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
@@ -1461,7 +1461,7 @@ void XMLTrackedChangesOOoTContext_Impl::StartElement(
}
else
{
- OSL_ENSURE( !this, "RedineProtectionKey is missing" );
+ OSL_ENSURE( false, "RedineProtectionKey is missing" );
}
}
break;
@@ -1588,7 +1588,7 @@ XMLTransformerContext *OOo2OasisTransformer::CreateUserDefinedContext(
case XML_ETACTION_TABLE:
return new XMLTableOOoTransformerContext_Impl( *this, rQName );
default:
- OSL_ENSURE( !this, "no user defined context found!" );
+ OSL_ENSURE( false, "no user defined context found!" );
}
// default is copying
diff --git a/xmloff/source/transform/PersMixedContentTContext.cxx b/xmloff/source/transform/PersMixedContentTContext.cxx
index f2d4239..fbde8c2 100644
--- a/xmloff/source/transform/PersMixedContentTContext.cxx
+++ b/xmloff/source/transform/PersMixedContentTContext.cxx
@@ -66,19 +66,19 @@ XMLTransformerContext *XMLPersTextTContext_Impl::CreateChildContext(
const OUString&,
const Reference< XAttributeList >& )
{
- OSL_ENSURE( !this, "illegal call to CreateChildContext" );
+ OSL_ENSURE( false, "illegal call to CreateChildContext" );
return 0;
}
void XMLPersTextTContext_Impl::StartElement(
const Reference< XAttributeList >& )
{
- OSL_ENSURE( !this, "illegal call to StartElement" );
+ OSL_ENSURE( false, "illegal call to StartElement" );
}
void XMLPersTextTContext_Impl::EndElement()
{
- OSL_ENSURE( !this, "illegal call to EndElement" );
+ OSL_ENSURE( false, "illegal call to EndElement" );
}
bool XMLPersTextTContext_Impl::IsPersistent() const
diff --git a/xmloff/source/transform/StyleOASISTContext.cxx b/xmloff/source/transform/StyleOASISTContext.cxx
index e01e342..7e3415e 100644
--- a/xmloff/source/transform/StyleOASISTContext.cxx
+++ b/xmloff/source/transform/StyleOASISTContext.cxx
@@ -554,7 +554,7 @@ void XMLPropertiesTContext_Impl::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
@@ -896,7 +896,7 @@ void XMLStyleOASISTContext::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx
index e8b225a..b66077e 100644
--- a/xmloff/source/transform/StyleOOoTContext.cxx
+++ b/xmloff/source/transform/StyleOOoTContext.cxx
@@ -960,7 +960,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
@@ -1091,7 +1091,7 @@ XMLTransformerContext *XMLStyleOOoTContext::CreateChildContext(
{
if( aPropTypes[m_eFamily][0] == XML_PROP_TYPE_END )
{
- OSL_ENSURE( !this, "unexpected properties element" );
+ OSL_ENSURE( false, "unexpected properties element" );
pContext = m_bPersistent
? XMLPersElemContentTContext::CreateChildContext(
nPrefix, rLocalName, rQName, rAttrList )
@@ -1269,7 +1269,7 @@ void XMLStyleOOoTContext::StartElement(
}
break;
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
diff --git a/xmloff/source/transform/TransformerBase.cxx b/xmloff/source/transform/TransformerBase.cxx
index f17501e..513692f 100644
--- a/xmloff/source/transform/TransformerBase.cxx
+++ b/xmloff/source/transform/TransformerBase.cxx
@@ -167,7 +167,7 @@ XMLTransformerContext *XMLTransformerBase::CreateContext( sal_uInt16 nPrefix,
return new XMLMergeElemTransformerContext( *this, rQName,
static_cast< sal_uInt16 >( (*aIter).second.m_nParam1 ) );
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
}
@@ -879,7 +879,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList(
}
default:
- OSL_ENSURE( !this, "unknown action" );
+ OSL_ENSURE( false, "unknown action" );
break;
}
diff --git a/xmloff/source/transform/TransformerContext.cxx b/xmloff/source/transform/TransformerContext.cxx
index 3cd09b3..5d07cae 100644
--- a/xmloff/source/transform/TransformerContext.cxx
+++ b/xmloff/source/transform/TransformerContext.cxx
@@ -89,12 +89,12 @@ bool XMLTransformerContext::IsPersistent() const
void XMLTransformerContext::Export()
{
- OSL_ENSURE( !this, "context is not persistent" );
+ OSL_ENSURE( false, "context is not persistent" );
}
void XMLTransformerContext::ExportContent()
{
- OSL_ENSURE( !this, "context is not persistent" );
+ OSL_ENSURE( false, "context is not persistent" );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list