diff options
author | Jon Hood <squinky86@gentoo.org> | 2004-05-02 02:44:35 +0000 |
---|---|---|
committer | Jon Hood <squinky86@gentoo.org> | 2004-05-02 02:44:35 +0000 |
commit | 6d79c071ecb5f7b5875506a9acf09905c9ae0ffa (patch) | |
tree | 9106afcc23abb471be2ce51320f83dbb94655109 /app-text/sword/files | |
parent | Added gcc-3.0 notice to pkg_postinstall() (Manifest recommit) (diff) | |
download | gentoo-2-6d79c071ecb5f7b5875506a9acf09905c9ae0ffa.tar.gz gentoo-2-6d79c071ecb5f7b5875506a9acf09905c9ae0ffa.tar.bz2 gentoo-2-6d79c071ecb5f7b5875506a9acf09905c9ae0ffa.zip |
gcc-3.4 compile-time fix from Robert Moss irt #48523
Diffstat (limited to 'app-text/sword/files')
-rw-r--r-- | app-text/sword/files/sword-gcc34-gentoo.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-text/sword/files/sword-gcc34-gentoo.patch b/app-text/sword/files/sword-gcc34-gentoo.patch new file mode 100644 index 000000000000..bf0869f9cb20 --- /dev/null +++ b/app-text/sword/files/sword-gcc34-gentoo.patch @@ -0,0 +1,19 @@ +--- include/multimapwdef.h.old 2004-04-29 04:22:07.516715976 +0100 ++++ include/multimapwdef.h 2004-04-29 04:22:20.051810352 +0100 +@@ -12,14 +12,14 @@ + public: + typedef std::pair<const Key, T> value_type; + T& getWithDefault(const Key& k, const T& defaultValue) { +- if (find(k) == end()) { ++ if (find(k) == this->end()) { + insert(value_type(k, defaultValue)); + } + return (*(find(k))).second; + } + + T& operator[](const Key& k) { +- if (find(k) == end()) { ++ if (find(k) == this->end()) { + insert(value_type(k, T())); + } + return (*(find(k))).second; |