diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-11 13:38:59 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-11 23:35:14 -0400 |
commit | ddf31912ddb5573a085b8601669cf31bf4b1f690 (patch) | |
tree | 2d8cc74cc81b408c73bfb4c08c8dbf1400c63005 /svtools | |
parent | 586895f8fa09e006a4cbef31f675585a5b6e42e9 (diff) |
Avoid sub-classing from std container, especially for this.
Use typedef instead.
Change-Id: Iafdcdba8cdf77836542141dce0fdcc34e88db210
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/treecontrolpeer.cxx | 8 | ||||
-rw-r--r-- | svtools/source/uno/treecontrolpeer.hxx | 14 |
2 files changed, 10 insertions, 12 deletions
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index 12fd892910e4..8e77362b08f3 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -144,14 +144,6 @@ public: TreeControlPeer* mpPeer; }; -// -------------------------------------------------------------------- - -class TreeNodeMap : public std::map< Reference< XTreeNode >, UnoTreeListEntry* > -{ -}; - -// -------------------------------------------------------------------- - TreeControlPeer::TreeControlPeer() : maSelectionListeners( *this ) , maTreeExpansionListeners( *this ) diff --git a/svtools/source/uno/treecontrolpeer.hxx b/svtools/source/uno/treecontrolpeer.hxx index c154d698b1cd..26b52da7a184 100644 --- a/svtools/source/uno/treecontrolpeer.hxx +++ b/svtools/source/uno/treecontrolpeer.hxx @@ -42,16 +42,22 @@ #include <tools/contnr.hxx> +#include <map> + +namespace com { namespace sun { namespace star { namespace awt { namespace tree { + +class XTreeNode; + +}}}}} + class UnoTreeListEntry; class TreeControlPeer; class UnoTreeListBoxImpl; -class TreeNodeMap; -// ---------------------------------------------------- -// class TreeControlPeer -// ---------------------------------------------------- class TreeControlPeer : public ::cppu::ImplInheritanceHelper2< VCLXWindow, ::com::sun::star::awt::tree::XTreeControl, ::com::sun::star::awt::tree::XTreeDataModelListener > { + typedef std::map<com::sun::star::uno::Reference<com::sun::star::awt::tree::XTreeNode>, UnoTreeListEntry*> TreeNodeMap; + friend class UnoTreeListBoxImpl; friend class UnoTreeListEntry; public: |