diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2004-09-16 20:32:08 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2004-09-16 20:32:08 +0000 |
commit | ec7b362ca8f099a9f81b592db05212f087805fe2 (patch) | |
tree | 3a4f9662a2296cafc8b761fd106ff148e5b14d32 /media-sound/mp3check/files | |
parent | Ebuild submitted by Elias Probst <elias.probst@gmx.de> with fixes by Christia... (diff) | |
download | historical-ec7b362ca8f099a9f81b592db05212f087805fe2.tar.gz historical-ec7b362ca8f099a9f81b592db05212f087805fe2.tar.bz2 historical-ec7b362ca8f099a9f81b592db05212f087805fe2.zip |
initial import. Ebuild submitted by <kavol@email.cz> and adapted to meet gentoo ebuild policies by <cparpart@surakware.net>
Diffstat (limited to 'media-sound/mp3check/files')
-rw-r--r-- | media-sound/mp3check/files/digest-mp3check-0.8.0 | 1 | ||||
-rw-r--r-- | media-sound/mp3check/files/mp3check-0.8.0-gcc34.diff | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/media-sound/mp3check/files/digest-mp3check-0.8.0 b/media-sound/mp3check/files/digest-mp3check-0.8.0 new file mode 100644 index 000000000000..d00248922244 --- /dev/null +++ b/media-sound/mp3check/files/digest-mp3check-0.8.0 @@ -0,0 +1 @@ +MD5 ebf7eef7c956ce452fe36f9bc70ed134 mp3check-0.8.0.tar.gz 119644 diff --git a/media-sound/mp3check/files/mp3check-0.8.0-gcc34.diff b/media-sound/mp3check/files/mp3check-0.8.0-gcc34.diff new file mode 100644 index 000000000000..5ce41b4abb31 --- /dev/null +++ b/media-sound/mp3check/files/mp3check-0.8.0-gcc34.diff @@ -0,0 +1,45 @@ +diff -ur mp3check-0.8.0/tmap.h mp3check-0.8.0.gcc34/tmap.h +--- mp3check-0.8.0/tmap.h 2002-12-03 23:00:57.000000000 +0100 ++++ mp3check-0.8.0.gcc34/tmap.h 2004-09-15 19:20:24.727493932 +0200 +@@ -54,7 +54,7 @@ + // new functionality + + /// return whether an element with key is contained or not +- bool contains(const K& key) const { return find(key) != end(); } ++ bool contains(const K& key) const { return find(key) != this->end(); } + /// access element read only (const) + // g++ 2.95.2 does not allow this: + // const T& operator[](const K& key) const { const_iterator i = find(key); if(i != end()) return i->second; else throw TNotFoundException(); } // throw(TNotFoundException) +diff -ur mp3check-0.8.0/tstring.cc mp3check-0.8.0.gcc34/tstring.cc +--- mp3check-0.8.0/tstring.cc 2003-01-27 22:21:17.000000000 +0100 ++++ mp3check-0.8.0.gcc34/tstring.cc 2004-09-15 19:31:52.383825721 +0200 +@@ -714,7 +714,7 @@ + + void tstring::replaceUnprintable(bool only_ascii) { + for(size_t i = 0; i < rep->len; i++) { +- unsigned char& c = (unsigned char)(*rep)[i]; ++ unsigned char& c = (unsigned char&)(*rep)[i]; + if(!isprint(c)) { + if(c < ' ') { + c = '!'; +diff -ur mp3check-0.8.0/tvector.h mp3check-0.8.0.gcc34/tvector.h +--- mp3check-0.8.0/tvector.h 2002-12-03 23:00:57.000000000 +0100 ++++ mp3check-0.8.0.gcc34/tvector.h 2004-09-15 19:22:32.756649251 +0200 +@@ -60,13 +60,13 @@ + /// append an element to the end + const tvector& operator += (const T& a) { push_back(a); return *this; } + /// append another tvector to the end +- const tvector& operator += (const tvector& a) { insert(end(), a.begin(), a.end()); return *this; } ++ const tvector& operator += (const tvector& a) { insert(this->end(), a.begin(), a.end()); return *this; } + /// direct read only access, safe +- const T& operator[](size_t i) const { if(i < size()) return tvector_base<T>::operator[](i); else throw TZeroBasedIndexOutOfRangeException(i, size()); } // throw(TZeroBasedIndexOutOfRangeException); ++ const T& operator[](size_t i) const { if(i < this->size()) return tvector_base<T>::operator[](i); else throw TZeroBasedIndexOutOfRangeException(i, this->size()); } // throw(TZeroBasedIndexOutOfRangeException); + /// direct read/write access, automatically create new elements +- T& operator[](size_t i) { if(i >= size()) operator+=(tvector(i - size() + 1)); return tvector_base<T>::operator[](i); } ++ T& operator[](size_t i) { if(i >= this->size()) operator+=(tvector(i - this->size() + 1)); return tvector_base<T>::operator[](i); } + /// clear vector +- void clear() { erase(begin(), end()); } ++ void clear() { erase(this->begin(), this->end()); } + }; + + |