kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

Blame SOURCES/0125-gtktiledviewer-these-globals-can-be-static.patch

f325b2
From 08fa99f5d2eba0159b34d401b179f294ac483125 Mon Sep 17 00:00:00 2001
f325b2
From: Miklos Vajna <vmiklos@collabora.co.uk>
f325b2
Date: Tue, 15 Sep 2015 10:59:58 +0200
f325b2
Subject: [PATCH 125/398] gtktiledviewer: these globals can be static
f325b2
f325b2
Change-Id: Ife0a4bb1102f6135e297dc69ba5b52b89a5dd9dd
f325b2
(cherry picked from commit 20df29e660139fc27d50fe006202f7ea78a3903a)
f325b2
---
f325b2
 libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 12 ++++++------
f325b2
 1 file changed, 6 insertions(+), 6 deletions(-)
f325b2
f325b2
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
f325b2
index dd369f5e7fb1..2bafd24f8b08 100644
f325b2
--- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
f325b2
+++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx
f325b2
@@ -38,17 +38,17 @@ static GtkToolItem* pItalic;
f325b2
 static GtkToolItem* pUnderline;
f325b2
 static GtkToolItem* pStrikethrough;
f325b2
 static GtkWidget* pScrolledWindow;
f325b2
-std::map<GtkToolItem*, std::string> g_aToolItemCommandNames;
f325b2
-std::map<std::string, GtkToolItem*> g_aCommandNameToolItems;
f325b2
-bool g_bToolItemBroadcast = true;
f325b2
+static std::map<GtkToolItem*, std::string> g_aToolItemCommandNames;
f325b2
+static std::map<std::string, GtkToolItem*> g_aCommandNameToolItems;
f325b2
+static bool g_bToolItemBroadcast = true;
f325b2
 static GtkWidget* pVBox;
f325b2
 static GtkComboBoxText* pPartSelector;
f325b2
 static GtkWidget* pPartModeComboBox;
f325b2
 /// Should the part selector avoid calling lok::Document::setPart()?
f325b2
 static bool g_bPartSelectorBroadcast = true;
f325b2
-GtkWidget* pFindbar;
f325b2
-GtkWidget* pFindbarEntry;
f325b2
-GtkWidget* pFindbarLabel;
f325b2
+static GtkWidget* pFindbar;
f325b2
+static GtkWidget* pFindbarEntry;
f325b2
+static GtkWidget* pFindbarLabel;
f325b2
 
f325b2
 static void lcl_registerToolItem(GtkToolItem* pItem, const std::string& rName)
f325b2
 {
f325b2
-- 
f325b2
2.12.0
f325b2