Commit f68eb0df authored by Scott Wheeler's avatar Scott Wheeler

A couple of minor optimizations/cleanups.

svn path=/trunk/kdemultimedia/juk/; revision=206624
parent b931274a
......@@ -88,6 +88,9 @@ void Cache::load()
CachedTag *t = new CachedTag(fileName);
s >> *t;
// Check the modification time of the file to make sure that
// the cache is current.
if(!t->current())
delete(t);
}
......
......@@ -22,13 +22,9 @@
// public members
////////////////////////////////////////////////////////////////////////////////
CachedTag::CachedTag(const QString &file) : Tag(file)
CachedTag::CachedTag(const QString &file) : Tag(file), externalTag(0), tagYear(0), tagTrackNumber(0), tagSeconds(0), tagExists(false)
{
tagYear = 0;
tagTrackNumber = 0;
tagSeconds = 0;
tagExists = false;
externalTag = 0;
}
CachedTag::~CachedTag()
......
......@@ -39,15 +39,12 @@
// public members
////////////////////////////////////////////////////////////////////////////////
ID3Tag::ID3Tag(const QString &file) : Tag(file)
ID3Tag::ID3Tag(const QString &file) : Tag(file), fileName(file), changed(false)
{
metaInfo = KFileMetaInfo(file, QString::null, KFileMetaInfo::Fastest);
fileName = file;
tag.Link(fileName.latin1());
changed = false;
// the easy ones -- these are supported in the id3 class
char *temp;
......
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