From 1ae4fb3e6c8b5fe43ae5b5f50b2a8e1368a37f42 Mon Sep 17 00:00:00 2001 From: "epg@pretzelnet.org" <> Date: Thu, 31 Jan 2013 22:14:26 -0800 Subject: [PATCH] Hmm, some standardization sitting around in a working copy since November... --- strip-tags.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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) { -- 2.56.0