[Libreoffice-commits] core.git: extensions/source
Noel (via logerrit)
logerrit at kemper.freedesktop.org
Sat Feb 27 10:55:48 UTC 2021
extensions/source/bibliography/bibmod.cxx | 2 +-
extensions/source/bibliography/bibmod.hxx | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 92b96423e0cf494e562e9771fc2b315d46fffc39
Author: Noel <noel.grandin at collabora.co.uk>
AuthorDate: Fri Feb 26 15:22:59 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Feb 27 11:55:08 2021 +0100
loplugin:refcounting in extensions
Change-Id: I3a03bdb53e2d75da3ca40b48ed8fd133dbf69dff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111634
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/extensions/source/bibliography/bibmod.cxx b/extensions/source/bibliography/bibmod.cxx
index 1a4f6cca47d2..c355e836a02b 100644
--- a/extensions/source/bibliography/bibmod.cxx
+++ b/extensions/source/bibliography/bibmod.cxx
@@ -74,7 +74,7 @@ BibModul::~BibModul()
pBibConfig = nullptr;
}
-BibDataManager* BibModul::createDataManager()
+rtl::Reference<BibDataManager> BibModul::createDataManager()
{
return new BibDataManager();
}
diff --git a/extensions/source/bibliography/bibmod.hxx b/extensions/source/bibliography/bibmod.hxx
index e651f720e753..6720b50bc549 100644
--- a/extensions/source/bibliography/bibmod.hxx
+++ b/extensions/source/bibliography/bibmod.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_EXTENSIONS_SOURCE_BIBLIOGRAPHY_BIBMOD_HXX
#include <locale>
+#include <rtl/ref.hxx>
class BibDataManager;
class BibConfig;
@@ -38,7 +39,7 @@ class BibModul
const std::locale& GetResLocale() const { return m_aResLocale; }
static BibConfig* GetConfig();
- static BibDataManager* createDataManager();
+ static rtl::Reference<BibDataManager> createDataManager();
};
More information about the Libreoffice-commits
mailing list