summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-14 09:49:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-15 06:45:14 +0000
commitd15b4e204598fc7e4c1682c4f10228e217575937 (patch)
tree1173b2725abac5f06bfd2e28965a95256283e6a4 /xmloff
parent14a0d26d6ae0ee59a685c254ec235fea81636475 (diff)
teach sallogareas plugin to catch inconsistencies
Change-Id: I8bcea5ffc74d48148bea78da8c17744e288c069a Reviewed-on: https://gerrit.libreoffice.org/32004 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx6
-rw-r--r--xmloff/source/style/xmlstyle.cxx2
-rw-r--r--xmloff/source/text/XMLTextFrameContext.cxx2
-rw-r--r--xmloff/source/text/txtflde.cxx16
4 files changed, 13 insertions, 13 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 11c05c6ee154..9a3344f0f010 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -1111,7 +1111,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
eType = XML_BOOLEAN_STYLE;
break;
}
- SAL_WARN_IF( eType == XML_TOKEN_INVALID, "xmloff", "unknown format type" );
+ SAL_WARN_IF( eType == XML_TOKEN_INVALID, "xmloff.style", "unknown format type" );
OUString sAttrValue;
bool bUserDef = ( rFormat.GetType() & css::util::NumberFormat::DEFINED );
@@ -1883,7 +1883,7 @@ OUString SvXMLNumFmtExport::GetStyleName( sal_uInt32 nKey )
void SvXMLNumFmtExport::SetUsed( sal_uInt32 nKey )
{
- SAL_WARN_IF( pFormatter == nullptr, "xmloff", "missing formatter" );
+ SAL_WARN_IF( pFormatter == nullptr, "xmloff.style", "missing formatter" );
if( !pFormatter )
return;
@@ -1919,7 +1919,7 @@ sal_uInt32 SvXMLNumFmtExport::ForceSystemLanguage( sal_uInt32 nKey )
const SvNumberformat* pFormat = lcl_GetFormat( pFormatter, nKey );
if( pFormat != nullptr )
{
- SAL_WARN_IF( pFormatter == nullptr, "xmloff", "format without formatter?" );
+ SAL_WARN_IF( pFormatter == nullptr, "xmloff.style", "format without formatter?" );
sal_Int32 nErrorPos;
short nType = pFormat->GetType();
diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx
index 0c25d3848c08..a08bcc7fc3f5 100644
--- a/xmloff/source/style/xmlstyle.cxx
+++ b/xmloff/source/style/xmlstyle.cxx
@@ -297,7 +297,7 @@ const SvXMLStyleContext *SvXMLStylesContext_Impl::FindStyleChildContext( sal_uIn
if( !pIndices && bCreateIndex && !aStyles.empty() )
{
pIndices = o3tl::make_unique<IndicesType>(aStyles.begin(), aStyles.end());
- SAL_WARN_IF(pIndices->size() != aStyles.size(), "xmloff", "Here is a duplicate Style");
+ SAL_WARN_IF(pIndices->size() != aStyles.size(), "xmloff.style", "Here is a duplicate Style");
#if OSL_DEBUG_LEVEL > 0
SAL_WARN_IF(0 != m_nIndexCreated, "xmloff.style",
"Performance warning: sdbcx::Index created multiple times");
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx
index c4a290cd382c..4d7a03df8b98 100644
--- a/xmloff/source/text/XMLTextFrameContext.cxx
+++ b/xmloff/source/text/XMLTextFrameContext.cxx
@@ -508,7 +508,7 @@ void XMLTextFrameContext_Impl::Create( bool /*bHRefOrBase64*/ )
case XML_TEXT_FRAME_GRAPHIC: sServiceName = "com.sun.star.text.GraphicObject"; break;
}
Reference<XInterface> xIfc = xFactory->createInstance( sServiceName );
- SAL_WARN_IF( !xIfc.is(), "xmloff", "couldn't create frame" );
+ SAL_WARN_IF( !xIfc.is(), "xmloff.text", "couldn't create frame" );
if( xIfc.is() )
xPropSet.set( xIfc, UNO_QUERY );
}
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index 26cea156ca73..0c901ae0c0d0 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2447,7 +2447,7 @@ void XMLTextFieldExport::ProcessDisplay(bool bIsVisible,
void XMLTextFieldExport::ProcessBoolean(enum XMLTokenEnum eName,
bool bBool, bool bDefault)
{
- SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token");
+ SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff.text", "invalid element token");
if ( XML_TOKEN_INVALID == eName )
return;
@@ -2466,7 +2466,7 @@ void XMLTextFieldExport::ProcessString(enum XMLTokenEnum eName,
bool bOmitEmpty,
sal_uInt16 nPrefix)
{
- SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token");
+ SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff.text", "invalid element token");
if ( XML_TOKEN_INVALID == eName )
return;
@@ -2517,8 +2517,8 @@ void XMLTextFieldExport::ProcessString(
enum XMLTokenEnum eValue,
sal_uInt16 nPrefix)
{
- SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token" );
- SAL_WARN_IF( eValue == XML_TOKEN_INVALID, "xmloff", "invalid value token" );
+ SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff.text", "invalid element token" );
+ SAL_WARN_IF( eValue == XML_TOKEN_INVALID, "xmloff.text", "invalid value token" );
if ( XML_TOKEN_INVALID == eName )
return;
@@ -2556,7 +2556,7 @@ void XMLTextFieldExport::ProcessParagraphSequence(
void XMLTextFieldExport::ProcessInteger(enum XMLTokenEnum eName,
sal_Int32 nNum)
{
- SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token");
+ SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff.text", "invalid element token");
if ( XML_TOKEN_INVALID == eName )
return;
@@ -2802,9 +2802,9 @@ void XMLTextFieldExport::ExportDataBaseElement(
const Reference<XPropertySet>& rPropertySet,
const Reference<XPropertySetInfo>& rPropertySetInfo )
{
- SAL_WARN_IF( eElementName == XML_TOKEN_INVALID, "xmloff", "need token" );
- SAL_WARN_IF( !rPropertySet.is(), "xmloff", "need property set" );
- SAL_WARN_IF( !rPropertySetInfo.is(), "xmloff", "need property set info" );
+ SAL_WARN_IF( eElementName == XML_TOKEN_INVALID, "xmloff.text", "need token" );
+ SAL_WARN_IF( !rPropertySet.is(), "xmloff.text", "need property set" );
+ SAL_WARN_IF( !rPropertySetInfo.is(), "xmloff.text", "need property set info" );
// get database properties
OUString sDataBaseName;