From edc9bc8788e6e9762071dab762fd1b30048a0d42 Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Mon, 4 Feb 2008 14:37:37 +0000 Subject: [PATCH] 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 --- taglib/mpeg/id3v2/id3v2frame.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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; } //////////////////////////////////////////////////////////////////////////////// -- 2.40.0