summaryrefslogtreecommitdiff
path: root/filter
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 /filter
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 'filter')
-rw-r--r--filter/source/svg/svgreader.cxx14
-rw-r--r--filter/source/svg/test/svg2odf.cxx4
2 files changed, 9 insertions, 9 deletions
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index 0426953ea5e9..fd4a58c52735 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -64,7 +64,7 @@ template<typename Func> void visitChildren(const Func& rFunc,
const sal_Int32 nNumNodes( xChildren->getLength() );
for( sal_Int32 i=0; i<nNumNodes; ++i )
{
- SAL_INFO("svg", "node type: " << sal::static_int_cast<sal_uInt32>(xChildren->item(i)->getNodeType()) << " tag name " << xChildren->item(i)->getNodeName() << " value |" << xChildren->item(i)->getNodeValue() << "|");
+ SAL_INFO("filter.svg", "node type: " << sal::static_int_cast<sal_uInt32>(xChildren->item(i)->getNodeType()) << " tag name " << xChildren->item(i)->getNodeName() << " value |" << xChildren->item(i)->getNodeValue() << "|");
if( xChildren->item(i)->getNodeType() == eChildType )
rFunc( *xChildren->item(i).get() );
}
@@ -631,7 +631,7 @@ struct AnnotatingVisitor
std::pair<StatePool::iterator,
bool> aRes = mrStates.insert(rState);
- SAL_INFO ("svg", "size " << mrStates.size() << " id " << const_cast<State&>(*aRes.first).mnStyleId);
+ SAL_INFO ("filter.svg", "size " << mrStates.size() << " id " << const_cast<State&>(*aRes.first).mnStyleId);
if( !aRes.second )
return false; // not written
@@ -640,7 +640,7 @@ struct AnnotatingVisitor
// mnStyleId does not take part in hashing/comparison
const_cast<State&>(*aRes.first).mnStyleId = mnCurrStateId;
- SAL_INFO ("svg", " --> " << const_cast<State&>(*aRes.first).mnStyleId);
+ SAL_INFO ("filter.svg", " --> " << const_cast<State&>(*aRes.first).mnStyleId);
mrStateMap.insert(std::make_pair(
mnCurrStateId,
@@ -870,7 +870,7 @@ struct AnnotatingVisitor
void writeStyle(const uno::Reference<xml::dom::XElement>& xElem, const sal_Int32 nTagId)
{
- SAL_INFO ("svg", "writeStyle xElem " << xElem->getTagName());
+ SAL_INFO ("filter.svg", "writeStyle xElem " << xElem->getTagName());
sal_Int32 nStyleId=0;
if( writeStyle(maCurrState, nTagId) )
@@ -1230,10 +1230,10 @@ struct AnnotatingVisitor
nTokenId, sValue );
break;
case XML_TOKEN_INVALID:
- SAL_INFO("svg", "unhandled token");
+ SAL_INFO("filter.svg", "unhandled token");
break;
default:
- SAL_INFO("svg", "unhandled token " << getTokenName(nTokenId));
+ SAL_INFO("filter.svg", "unhandled token " << getTokenName(nTokenId));
break;
}
}
@@ -2044,7 +2044,7 @@ struct OfficeStylesWritingVisitor
}
}
- SAL_INFO("svg", "SvgDashArray2Odf " << *dash_distance << " " << *dots1 << " " << *dots1_length << " " << *dots2 << " " << *dots2_length );
+ SAL_INFO("filter.svg", "SvgDashArray2Odf " << *dash_distance << " " << *dots1 << " " << *dots1_length << " " << *dots2 << " " << *dots2_length );
return;
}
diff --git a/filter/source/svg/test/svg2odf.cxx b/filter/source/svg/test/svg2odf.cxx
index cbb3e6b05317..9406d32fdcbc 100644
--- a/filter/source/svg/test/svg2odf.cxx
+++ b/filter/source/svg/test/svg2odf.cxx
@@ -120,12 +120,12 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
}
catch (const uno::Exception& e)
{
- SAL_WARN("vcl.app", "Fatal exception: " << e.Message);
+ SAL_WARN("filter.svg", "Fatal exception: " << e.Message);
return 1;
}
catch (const std::exception &e)
{
- SAL_WARN("vcl.app", "Fatal exception: " << e.what());
+ SAL_WARN("filter.svg", "Fatal exception: " << e.what());
return 1;
}
return nRet;