[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/phonon
From: Thierry Bastian <thierry.bastian () trolltech ! com>
Date: 2008-03-11 13:31:22
Message-ID: 1205242282.293977.19798.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 784482 by tbastian:
small perf improvement (QUrl is only parsed once)
M +6 -4 mediasource.cpp
--- trunk/KDE/kdelibs/phonon/mediasource.cpp #784481:784482
@@ -55,11 +55,13 @@
d->ioDevice = new QFile(filename);
d->stream = new IODeviceStream(d->ioDevice, d->ioDevice);
}
- } else if (QUrl(filename).isValid()) {
+ } else {
d->url = filename;
- d->type = Url;
- } else {
- d->type = Invalid;
+ if (d->url.isValid()) {
+ d->type = Url;
+ } else {
+ d->type = Invalid;
+ }
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic