summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-17 10:52:48 +0100
committerAndras Timar <andras.timar@collabora.com>2014-01-03 09:51:04 +0100
commit21891259314bcc3e348a2c785aca2531adaf39c1 (patch)
tree54a2e08887bba21799b6291e8aae05bd7ad2d3d3 /odk
parent19ef952811ac3afafa77a6f4c3bc5d1096cbc680 (diff)
Do not use Boost in SDK examples
Change-Id: I8b2af447fe3ee29261e538a53b4624ff8b6c4d1e (cherry picked from commit ca4065680a402e3d0ff43e41744b24a9c980b2ef) Reviewed-on: https://gerrit.libreoffice.org/7118 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h
index a1e633ec3d76..0fe4bd02a937 100644
--- a/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h
+++ b/odk/examples/cpp/complextoolbarcontrols/ListenerHelper.h
@@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <map>
#include <vector>
-#include <boost/unordered_map.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XStatusListener.hpp>
@@ -29,14 +29,11 @@
typedef std::vector < com::sun::star::uno::Reference < com::sun::star::frame::XStatusListener > > StatusListeners;
-typedef boost::unordered_map < ::rtl::OUString,
- StatusListeners,
- rtl::OUStringHash,
- std::equal_to< rtl::OUString > > ListenerMap;
+typedef std::map < ::rtl::OUString, StatusListeners > ListenerMap;
// For every frame there is *one* Dispatch object for all possible commands
// this struct contains an array of listeners for every supported command
-// these arrays are accessed by a boost::unordered_map (with the command string as index)
+// these arrays are accessed by a std::map (with the command string as index)
struct ListenerItem
{
ListenerMap aContainer;