FakeVim: Simplify FakeVimSettings object

Change-Id: Ic4f4d23af021ed779a500183ca4b145dd3bc3443
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2016-03-01 23:24:59 +01:00
parent 55dcec95f7
commit f25bd123eb
4 changed files with 90 additions and 118 deletions

View File

@@ -105,9 +105,6 @@
#endif
using namespace Utils;
#ifdef FAKEVIM_STANDALONE
using namespace FakeVim::Internal::Utils;
#endif
namespace FakeVim {
namespace Internal {
@@ -5713,7 +5710,7 @@ bool FakeVimHandler::Private::handleExSetCommand(const ExCommand &cmd)
if (negateOption)
optionName.remove(0, 2);
SavedAction *act = theFakeVimSettings()->item(optionName);
FakeVimAction *act = theFakeVimSettings()->item(optionName);
if (!act) {
showMessage(MessageError, Tr::tr("Unknown option:")
+ QLatin1Char(' ') + cmd.args);