summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-27 15:12:58 +0200
committerMichael Stahl <mstahl@redhat.com>2015-10-27 15:35:36 +0000
commit623f5b26ffd77041d0b06d7ce9c3b32d05625440 (patch)
treeecd905d6657147b1c5a074b4d33f914f0039440c /include
parent446f17f6c1f98b17ceb6750f5dc67a27330d1351 (diff)
don't allocate rtl::Reference or SvRef on the heap
There is no point, since it's the size of a pointer anyway Found by temporarily making their 'operator new' methods deleted. Change-Id: I265e40ce93ad4bad08b4f0bd49db08929e44b7d6 Reviewed-on: https://gerrit.libreoffice.org/19628 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/linkmgr.hxx2
-rw-r--r--include/xmloff/xmlmultiimagehelper.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/linkmgr.hxx b/include/sfx2/linkmgr.hxx
index f0941e221cec..787a9526b748 100644
--- a/include/sfx2/linkmgr.hxx
+++ b/include/sfx2/linkmgr.hxx
@@ -44,7 +44,7 @@ namespace sfx2
// FormatID "RegisterStatusInfoId" and a string as the data container.
// This contains the following enum.
-typedef std::vector<tools::SvRef<SvBaseLink>*> SvBaseLinks;
+typedef std::vector<tools::SvRef<SvBaseLink> > SvBaseLinks;
typedef std::set<SvLinkSource*> SvLinkSources;
diff --git a/include/xmloff/xmlmultiimagehelper.hxx b/include/xmloff/xmlmultiimagehelper.hxx
index c15bdbd33bf5..c8d88b273fb2 100644
--- a/include/xmloff/xmlmultiimagehelper.hxx
+++ b/include/xmloff/xmlmultiimagehelper.hxx
@@ -28,7 +28,7 @@
class MultiImageImportHelper
{
private:
- std::vector< SvXMLImportContextRef* > maImplContextVector;
+ std::vector< SvXMLImportContextRef > maImplContextVector;
bool mbSupportsMultipleContents;
protected: