[Libreoffice-commits] core.git: xmlhelp/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 2 06:20:54 UTC 2021
xmlhelp/source/cxxhelp/provider/content.cxx | 4 ++--
xmlhelp/source/cxxhelp/provider/resultsetfactory.hxx | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 095928cd526da3b26c44e204624a4e5b55cfcaaa
Author: Noel <noel.grandin at collabora.co.uk>
AuthorDate: Mon Mar 1 20:36:47 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Mar 2 07:20:06 2021 +0100
loplugin:refcounting in xmlhelp
Change-Id: I0b045ab762e946db16632637f24b06d20e294bc8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111768
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx
index 273c68555c9f..f16c6b880471 100644
--- a/xmlhelp/source/cxxhelp/provider/content.cxx
+++ b/xmlhelp/source/cxxhelp/provider/content.cxx
@@ -154,7 +154,7 @@ public:
{
}
- ResultSetBase* createResultSet() override
+ rtl::Reference<ResultSetBase> createResultSet() override
{
return new ResultSetForRoot( m_xContext,
m_xProvider,
@@ -191,7 +191,7 @@ public:
{
}
- ResultSetBase* createResultSet() override
+ rtl::Reference<ResultSetBase> createResultSet() override
{
return new ResultSetForQuery( m_xContext,
m_xProvider,
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetfactory.hxx b/xmlhelp/source/cxxhelp/provider/resultsetfactory.hxx
index 2dba0ec05fb6..ad1e03c13196 100644
--- a/xmlhelp/source/cxxhelp/provider/resultsetfactory.hxx
+++ b/xmlhelp/source/cxxhelp/provider/resultsetfactory.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_XMLHELP_SOURCE_CXXHELP_PROVIDER_RESULTSETFACTORY_HXX
#include "resultsetbase.hxx"
+#include <rtl/ref.hxx>
namespace chelp {
@@ -32,7 +33,7 @@ namespace chelp {
virtual ~ResultSetFactory() { };
- virtual ResultSetBase* createResultSet() = 0;
+ virtual rtl::Reference<ResultSetBase> createResultSet() = 0;
};
More information about the Libreoffice-commits
mailing list