summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-20 03:15:10 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-20 03:15:10 +0200
commit0072c90b4a9feca8a7d81dddbcaf16674599f883 (patch)
treecd3b88ecbf37cd168e0ac25b79886978dbd81589 /src
parentFixing save setting crash (diff)
downloadrekonq-0072c90b4a9feca8a7d81dddbcaf16674599f883.tar.xz
create function fix
Diffstat (limited to 'src')
-rw-r--r--src/webpluginfactory.cpp8
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