f0633d
From 4d678d76b51a14e81b0a29c7e96a338bd058526a Mon Sep 17 00:00:00 2001
f0633d
From: Stephan Bergmann <sbergman@redhat.com>
f0633d
Date: Tue, 17 Dec 2013 10:52:48 +0100
f0633d
Subject: [PATCH 071/109] Do not use Boost in SDK examples
f0633d
f0633d
Change-Id: I8b2af447fe3ee29261e538a53b4624ff8b6c4d1e
f0633d
(cherry picked from commit ca4065680a402e3d0ff43e41744b24a9c980b2ef)
f0633d
Reviewed-on: https://gerrit.libreoffice.org/7118
f0633d
Reviewed-by: Michael Stahl <mstahl@redhat.com>
f0633d
Tested-by: Michael Stahl <mstahl@redhat.com>
f0633d
---
f0633d
 odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h | 9 +++------
f0633d
 1 file changed, 3 insertions(+), 6 deletions(-)
f0633d
f0633d
diff --git a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h
f0633d
index a1e633e..0fe4bd0 100644
f0633d
--- a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h
f0633d
+++ b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h
f0633d
@@ -17,8 +17,8 @@
f0633d
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
f0633d
  */
f0633d
 
f0633d
+#include <map>
f0633d
 #include <vector>
f0633d
-#include <boost/unordered_map.hpp>
f0633d
 
f0633d
 #include <com/sun/star/frame/XFrame.hpp>
f0633d
 #include <com/sun/star/frame/XStatusListener.hpp>
f0633d
@@ -29,14 +29,11 @@
f0633d
 
f0633d
 typedef std::vector < com::sun::star::uno::Reference < com::sun::star::frame::XStatusListener > > StatusListeners;
f0633d
 
f0633d
-typedef boost::unordered_map < ::rtl::OUString,
f0633d
-                               StatusListeners,
f0633d
-                               rtl::OUStringHash,
f0633d
-                               std::equal_to< rtl::OUString > > ListenerMap;
f0633d
+typedef std::map < ::rtl::OUString, StatusListeners > ListenerMap;
f0633d
 
f0633d
 // For every frame there is *one* Dispatch object for all possible commands
f0633d
 // this struct contains an array of listeners for every supported command
f0633d
-// these arrays are accessed by a boost::unordered_map (with the command string as index)
f0633d
+// these arrays are accessed by a std::map (with the command string as index)
f0633d
 struct ListenerItem
f0633d
 {
f0633d
     ListenerMap aContainer;
f0633d
-- 
f0633d
1.8.4.2
f0633d