From: epg@pretzelnet.org <> Date: Fri, 1 Feb 2013 06:14:26 +0000 (-0800) Subject: Hmm, some standardization sitting around in a working copy since November... X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/1ae4fb3e6c8b5fe43ae5b5f50b2a8e1368a37f42?ds=sidebyside;hp=7ca027cb386b85acf392c0c5dbeda45bd9483d4e Hmm, some standardization sitting around in a working copy since November... --- diff --git a/strip-tags.cc b/strip-tags.cc index 7a4d8f9..610af68 100644 --- a/strip-tags.cc +++ b/strip-tags.cc @@ -1,8 +1,10 @@ -#include -#include -#include +extern "C" { #include +} +#include +#include +#include #include #include @@ -11,12 +13,12 @@ // set::find didn't work...?! class ByteVectorSet { public: - ByteVectorSet(set bv_set) + ByteVectorSet(std::set bv_set) : set_(bv_set) { } bool has(TagLib::ByteVector *bv) { - for (set::const_iterator it = set_.begin(); + for (std::set::const_iterator it = set_.begin(); it != set_.end(); ++it) { if (**it == *bv) { @@ -27,7 +29,7 @@ public: } private: - set set_; + std::set set_; }; static bool @@ -66,7 +68,7 @@ strip_frames(TagLib::MPEG::File &f, ByteVectorSet &preserve) int main(int argc, char **argv) { - set preserve_frames; + std::set preserve_frames; int c; while ((c = getopt(argc, argv, "p:")) != -1) {