From 394acae790c839be2ce922a591648962b192641e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 23 Feb 2015 20:07:53 -0500 Subject: [PATCH] CmdContext MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Trivіal code edits. --- src/commands/CmdContext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/CmdContext.cpp b/src/commands/CmdContext.cpp index 93463c4ee..659f667a0 100644 --- a/src/commands/CmdContext.cpp +++ b/src/commands/CmdContext.cpp @@ -132,12 +132,12 @@ int CmdContext::defineContext (std::vector & words, std::stringstre if (words.size () > 2) { std::string name = "context." + words[1]; - std::string value = joinWords(words, 2); + std::string value = joinWords (words, 2); // TODO: Check if the value is a proper filter // Set context definition config variable bool confirmation = context.config.getBoolean ("confirmation"); - bool success = CmdConfig::setConfigVariable(name, value, confirmation); + bool success = CmdConfig::setConfigVariable (name, value, confirmation); if (success) out << format (STRING_CMD_CONTEXT_DEF_SUCC, words[1]) << "\n"; @@ -259,12 +259,12 @@ int CmdContext::setContext (std::vector & words, std::stringstream& std::vector contexts = getContexts (); // Check that the specified context is defined - if (std::find (contexts.begin (), contexts.end (), value) == contexts.end()) + if (std::find (contexts.begin (), contexts.end (), value) == contexts.end ()) throw format (STRING_CMD_CONTEXT_SET_NFOU, value); // Set the active context. // Should always succeed, as we do not require confirmation. - bool success = CmdConfig::setConfigVariable("context", value, false); + bool success = CmdConfig::setConfigVariable ("context", value, false); if (success) out << format (STRING_CMD_CONTEXT_SET_SUCC, value) << "\n"; @@ -313,7 +313,7 @@ int CmdContext::showContext (std::vector & words, std::stringstream int CmdContext::unsetContext (std::vector & words, std::stringstream& out) { int rc = 0; - int status = CmdConfig::unsetConfigVariable("context", false); + int status = CmdConfig::unsetConfigVariable ("context", false); if (status == 0) out << STRING_CMD_CONTEXT_NON_SUCC << "\n";