diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-20 03:15:10 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-20 03:15:10 +0200 |
commit | 0072c90b4a9feca8a7d81dddbcaf16674599f883 (patch) | |
tree | cd3b88ecbf37cd168e0ac25b79886978dbd81589 /src/webpluginfactory.cpp | |
parent | Fixing save setting crash (diff) | |
download | rekonq-0072c90b4a9feca8a7d81dddbcaf16674599f883.tar.xz |
create function fix
Diffstat (limited to 'src/webpluginfactory.cpp')
-rw-r--r-- | src/webpluginfactory.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/webpluginfactory.cpp b/src/webpluginfactory.cpp index 64ed3655..52268c3e 100644 --- a/src/webpluginfactory.cpp +++ b/src/webpluginfactory.cpp @@ -50,23 +50,25 @@ QObject *WebPluginFactory::create(const QString &mimeType, const QStringList &argumentNames, const QStringList &argumentValues) const { + Q_UNUSED(url) + kDebug() << "loading mimeType: " << mimeType; if(mimeType == QString("application/image-preview") ) { - QString url, pos; + QString imageUrl, pos; for(int i = 0; i<argumentNames.count(); ++i) { if(argumentNames.at(i) == QString("url")) { - url = argumentValues.at(i); + imageUrl = argumentValues.at(i); } if(argumentNames.at(i) == QString("position")) { pos = argumentValues.at(i); } } - return new PreviewImage(url, pos); + return new PreviewImage(imageUrl, pos); } // this let QtWebKit using builtin plugins |