summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-09-08 12:59:50 +0000
committerRüdiger Timm <rt@openoffice.org>2004-09-08 12:59:50 +0000
commite04c5d8c04a0db03f5783eaf8aa3b4369fdcdd7d (patch)
tree09dc625946ef96820ede6f774c7dbcf05ce5fef8 /psprint
parent85b165d9d5d5bfce9687bdae01e5035f04e9bd48 (diff)
INTEGRATION: CWS ooo20040704 (1.5.24); FILE MERGED
2004/08/09 14:42:00 vg 1.5.24.3: RESYNC MERGED 1.5 1.6 Everything below this line will be added to the revision comment. 2004/07/02 09:02:56 cmc 1.5.24.2: #i30891# revert header and namespace change 2004/06/28 12:57:36 cmc 1.5.24.1: #i30801# allow using system stl if possible
Diffstat (limited to 'psprint')
-rw-r--r--psprint/inc/psprint/ppdparser.hxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/psprint/inc/psprint/ppdparser.hxx b/psprint/inc/psprint/ppdparser.hxx
index 51696ab2549e..46cd74b61241 100644
--- a/psprint/inc/psprint/ppdparser.hxx
+++ b/psprint/inc/psprint/ppdparser.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ppdparser.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2004-07-23 10:07:44 $
+ * last change: $Author: rt $ $Date: 2004-09-08 13:59:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -142,6 +142,13 @@ public:
int getOrderDependency() const { return m_nOrderDependency; }
};
+// define a hash for PPDKey
+struct PPDKeyhash
+{
+ size_t operator()( const PPDKey * pKey) const
+ { return (size_t)pKey; }
+};
+
// ----------------------------------------------------------------------
/*
@@ -311,7 +318,8 @@ public:
class PPDContext
{
- ::std::hash_map< const PPDKey*, const PPDValue* > m_aCurrentValues;
+ typedef ::std::hash_map< const PPDKey*, const PPDValue*, PPDKeyhash > hash_type;
+ hash_type m_aCurrentValues;
const PPDParser* m_pParser;
// returns false: check failed, new value is constrained