Commit 0a9745dc authored by Frerich Raabe's avatar Frerich Raabe

- Beautified the constructor a bit

svn path=/trunk/kdemultimedia/juk/; revision=214733
parent 3e7e921e
......@@ -31,21 +31,21 @@
Tag *Tag::createTag(const QString &file, bool ignoreCache)
{
Tag *cachedItem;
Tag *cachedItem = 0;
if(!ignoreCache)
cachedItem = Cache::instance()->find(file);
else
cachedItem = 0;
cachedItem = Cache::instance()->find(file);
if(cachedItem)
return cachedItem;
else if(file.lower().endsWith("mp3"))
return new ID3Tag(file);
return cachedItem;
if(file.lower().endsWith("mp3"))
return new ID3Tag(file);
if(file.lower().endsWith("ogg"))
return new OggTag(file);
else
return 0;
return new OggTag(file);
return 0;
}
Tag::~Tag()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment