From: Scott Wheeler Date: Mon, 4 Feb 2008 14:37:37 +0000 (+0000) Subject: This function shouldn't be (implicitly) exported. X-Git-Tag: v1.5~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edc9bc8788e6e9762071dab762fd1b30048a0d42;p=taglib This function shouldn't be (implicitly) exported. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@770837 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/taglib/mpeg/id3v2/id3v2frame.cpp b/taglib/mpeg/id3v2/id3v2frame.cpp index ae9e6ef3..d60ce4a7 100644 --- a/taglib/mpeg/id3v2/id3v2frame.cpp +++ b/taglib/mpeg/id3v2/id3v2frame.cpp @@ -57,17 +57,20 @@ public: Frame::Header *header; }; -bool isValidFrameID(const ByteVector &frameID) +namespace { - if(frameID.size() != 4) { - return false; - } - for(ByteVector::ConstIterator it = frameID.begin(); it != frameID.end(); it++) { - if( (*it < 'A' || *it > 'Z') && (*it < '1' || *it > '9') ) { + bool isValidFrameID(const ByteVector &frameID) + { + if(frameID.size() != 4) return false; + + for(ByteVector::ConstIterator it = frameID.begin(); it != frameID.end(); it++) { + if( (*it < 'A' || *it > 'Z') && (*it < '1' || *it > '9') ) { + return false; + } } + return true; } - return true; } ////////////////////////////////////////////////////////////////////////////////