summaryrefslogtreecommitdiffstats
path: root/writerfilter/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-25 20:53:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-25 20:58:09 +0000
commit4c0040b6f1e3137e0d40aab09088c43214db3165 (patch)
treec92de6fa2cec7a9dd2b52d1d7f7bef10f08a4ead /writerfilter/source
parentadd 602 fuzzer (diff)
downloadcore-4c0040b6f1e3137e0d40aab09088c43214db3165.tar.gz
core-4c0040b6f1e3137e0d40aab09088c43214db3165.zip
re org things a little to quieten coverity warnings
Change-Id: I97d1e5cce279031cb1d855132cc6695fc4b59c93
Diffstat (limited to 'writerfilter/source')
-rw-r--r--writerfilter/source/ooxml/Handler.cxx4
-rw-r--r--writerfilter/source/ooxml/Handler.hxx1
-rw-r--r--writerfilter/source/ooxml/OOXMLFastContextHandler.cxx1
3 files changed, 6 insertions, 0 deletions
diff --git a/writerfilter/source/ooxml/Handler.cxx b/writerfilter/source/ooxml/Handler.cxx
index 0600b5b1853c..c0d59ffeadb6 100644
--- a/writerfilter/source/ooxml/Handler.cxx
+++ b/writerfilter/source/ooxml/Handler.cxx
@@ -324,6 +324,10 @@ OOXMLHyperlinkHandler::OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext)
OOXMLHyperlinkHandler::~OOXMLHyperlinkHandler()
{
+}
+
+void OOXMLHyperlinkHandler::writetext()
+{
OUString sReturn(" HYPERLINK \"");
sReturn += mURL;
diff --git a/writerfilter/source/ooxml/Handler.hxx b/writerfilter/source/ooxml/Handler.hxx
index 80254d5ee602..eb6b8b63fa91 100644
--- a/writerfilter/source/ooxml/Handler.hxx
+++ b/writerfilter/source/ooxml/Handler.hxx
@@ -139,6 +139,7 @@ class OOXMLHyperlinkHandler : public Properties
public:
explicit OOXMLHyperlinkHandler(OOXMLFastContextHandler * pContext);
virtual ~OOXMLHyperlinkHandler();
+ void writetext();
virtual void attribute(Id name, Value & val) override;
virtual void sprm(Sprm & sprm) override;
diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
index 1be3fa6af239..bc3140662aad 100644
--- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
@@ -904,6 +904,7 @@ void OOXMLFastContextHandlerStream::handleHyperlink()
{
OOXMLHyperlinkHandler aHyperlinkHandler(this);
getPropertySetAttrs()->resolve(aHyperlinkHandler);
+ aHyperlinkHandler.writetext();
}
/*