summaryrefslogtreecommitdiffstats
path: root/sc/inc/dpobject.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-05-06 15:35:19 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-05-06 15:35:19 -0400
commit69a290dd646eb7147a7ffbf52dd02faa21f09a93 (patch)
tree8d34e3d2e7af6ee945c25f0acac22c05f3665a90 /sc/inc/dpobject.hxx
parentRemove range names with external references regardless of cells. (diff)
downloadcore-69a290dd646eb7147a7ffbf52dd02faa21f09a93.tar.gz
core-69a290dd646eb7147a7ffbf52dd02faa21f09a93.zip
Explicitly specify less function object for map, to get it to build with MSVC.
Diffstat (limited to 'sc/inc/dpobject.hxx')
-rw-r--r--sc/inc/dpobject.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 30ca8406d11e..d71040906443 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -297,6 +297,11 @@ public:
::rtl::OUString maDBName;
::rtl::OUString maCommand;
DBType(sal_Int32 nSdbType, const ::rtl::OUString& rDBName, const ::rtl::OUString& rCommand);
+
+ struct less : public ::std::binary_function<DBType, DBType, bool>
+ {
+ bool operator() (const DBType& left, const DBType& right) const;
+ };
};
/**
@@ -304,7 +309,7 @@ public:
*/
class DBCaches
{
- typedef ::boost::ptr_map<DBType, ScDPCache> CachesType;
+ typedef ::boost::ptr_map<DBType, ScDPCache, DBType::less> CachesType;
CachesType maCaches;
ScDocument* mpDoc;
public: