From 096a7aa72b84f9d1e73c704cdccfa46c54e3c102 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Date: Wed, 30 Mar 2011 13:46:57 +0200 Subject: [PATCH] remove superfluous argument no need to pass in the current file name --- src/plugins/fakevim/fakevimplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index 94959fdc52f..f17afce7a1c 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -1466,7 +1466,7 @@ void FakeVimPluginPrivate::handleExCommand(bool *handled, const ExCommand &cmd) const QString fileName = handler->currentFileName(); if (editor && editor->file()->fileName() == fileName) { // Handle that as a special case for nicer interaction with core - Core::ICore::instance()->fileManager()->saveFile(editor->file(), fileName); + Core::ICore::instance()->fileManager()->saveFile(editor->file()); // Check result by reading back. QFile file3(fileName); file3.open(QIODevice::ReadOnly); -- GitLab