Blame SOURCES/0001-fold-SfxPickList-Get-and-ensure-together.patch

69cc7b
From e4d3b23009a323efc8b31431107cc2d2a529b118 Mon Sep 17 00:00:00 2001
69cc7b
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
69cc7b
Date: Mon, 8 May 2017 15:27:49 +0100
69cc7b
Subject: [PATCH 1/5] fold SfxPickList::Get and ::ensure together
69cc7b
69cc7b
Change-Id: Iab68095a9733393b656623ddd6bb8705f7cfda82
69cc7b
(cherry picked from commit f17d55e5495859b2a78ed625fc2573391e26cdf1)
69cc7b
---
69cc7b
 sfx2/source/appl/sfxpicklist.cxx | 3 +--
69cc7b
 sfx2/source/inc/sfxpicklist.hxx  | 3 +--
69cc7b
 2 files changed, 2 insertions(+), 4 deletions(-)
69cc7b
69cc7b
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
69cc7b
index be48209..cc3a5cf 100644
69cc7b
--- a/sfx2/source/appl/sfxpicklist.cxx
69cc7b
+++ b/sfx2/source/appl/sfxpicklist.cxx
69cc7b
@@ -167,10 +167,9 @@ void SfxPickList::AddDocumentToPickList( SfxObjectShell* pDocSh )
69cc7b
                                                                  (pFilter) ? pFilter->GetServiceName() : OUString() );
69cc7b
 }
69cc7b
 
69cc7b
-SfxPickList& SfxPickList::Get()
69cc7b
+void SfxPickList::ensure()
69cc7b
 {
69cc7b
     static SfxPickList aUniqueInstance(SvtHistoryOptions().GetSize(ePICKLIST));
69cc7b
-    return aUniqueInstance;
69cc7b
 }
69cc7b
 
69cc7b
 SfxPickList::SfxPickList( sal_uInt32 nAllowedMenuSize ) :
69cc7b
diff --git a/sfx2/source/inc/sfxpicklist.hxx b/sfx2/source/inc/sfxpicklist.hxx
69cc7b
index e77d6ed..b1e86b0 100644
69cc7b
--- a/sfx2/source/inc/sfxpicklist.hxx
69cc7b
+++ b/sfx2/source/inc/sfxpicklist.hxx
69cc7b
@@ -45,8 +45,7 @@ class SfxPickList : public SfxListener
69cc7b
     static void             AddDocumentToPickList( SfxObjectShell* pDocShell );
69cc7b
 
69cc7b
     public:
69cc7b
-        static SfxPickList& Get();
69cc7b
-        static void ensure() { Get(); }
69cc7b
+        static void ensure();
69cc7b
 
69cc7b
         virtual void        Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
69cc7b
 };
69cc7b
-- 
69cc7b
2.9.3
69cc7b