gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/libbase hash_wrapper.h


From: Markus Gothe
Subject: [Gnash-commit] gnash/libbase hash_wrapper.h
Date: Wed, 29 Nov 2006 00:29:22 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/11/29 00:29:22

Modified files:
        libbase        : hash_wrapper.h 

Log message:
        Fixed stuff...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/hash_wrapper.h?cvsroot=gnash&r1=1.2&r2=1.3

Patches:
Index: hash_wrapper.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/hash_wrapper.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- hash_wrapper.h      28 Nov 2006 00:39:44 -0000      1.2
+++ hash_wrapper.h      29 Nov 2006 00:29:22 -0000      1.3
@@ -17,7 +17,7 @@
 //
 //
 
-/* $Id: hash_wrapper.h,v 1.2 2006/11/28 00:39:44 nihilus Exp $ */
+/* $Id: hash_wrapper.h,v 1.3 2006/11/29 00:29:22 nihilus Exp $ */
 
 #ifndef HASH_WRAPPER_H
 #define HASH_WRAPPER_H
@@ -27,13 +27,9 @@
 template<typename T, typename U>
 class hash_wrapper : public std::map<T, U>
 {
-private:
-
-       typedef typename std::map<T, U>::iterator iterator;
 
 public:
 
-               
        void add(const T& key, U& mov)
        {
                (*this)[key] = mov;
@@ -41,7 +37,7 @@
        
        bool get(const T& key, U* ret)
        {
-               iterator it = find(key);
+               typename std::map<T, U>::iterator it = find(key);
                if ( it != this->end() )
                {
                        *ret = it->second;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]