From ad0494bb7e958e80b079d3c392803ab41b9b8750 Mon Sep 17 00:00:00 2001 From: Nick Shaforostoff Date: Mon, 31 Jan 2011 12:24:30 +0000 Subject: [PATCH] formal change: combine if-conditions for identical bodies git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1218105 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- taglib/fileref.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/taglib/fileref.cpp b/taglib/fileref.cpp index 675f3fe9..d18a3aeb 100644 --- a/taglib/fileref.cpp +++ b/taglib/fileref.cpp @@ -254,12 +254,10 @@ File *FileRef::create(FileName fileName, bool readAudioProperties, if(ext == "WMA" || ext == "ASF") return new ASF::File(fileName, readAudioProperties, audioPropertiesStyle); #endif - if(ext == "AIF") + if(ext == "AIF" || ext == "AIFF") return new RIFF::AIFF::File(fileName, readAudioProperties, audioPropertiesStyle); if(ext == "WAV") return new RIFF::WAV::File(fileName, readAudioProperties, audioPropertiesStyle); - if(ext == "AIFF") - return new RIFF::AIFF::File(fileName, readAudioProperties, audioPropertiesStyle); if(ext == "APE") return new APE::File(fileName, readAudioProperties, audioPropertiesStyle); }