summaryrefslogtreecommitdiff
path: root/src/option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.cpp')
-rw-r--r--src/option.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/option.cpp b/src/option.cpp
index b3fba2f..dbe0df6 100644
--- a/src/option.cpp
+++ b/src/option.cpp
@@ -268,8 +268,8 @@ CompOption::Value::action ()
priv->checkType (priv->type);
if (!checkIsAction (priv->type))
- compLogMessage("core", CompLogLevelWarn,
- "CompOption::Value not an action");
+ compLogMessage ("core", CompLogLevelWarn,
+ "CompOption::Value not an action");
return priv->action;
}
@@ -602,7 +602,7 @@ CompOption::findOption (CompOption::Vector &options,
for (i = 0; i < options.size (); i++)
{
- if (options[i].priv->name.compare(name) == 0)
+ if (options[i].priv->name == name)
{
if (index)
*index = i;
@@ -691,7 +691,7 @@ CompOption::setName (CompString name, CompOption::Type type)
priv->name = name;
priv->type = type;
}
-
+
CompString
CompOption::name ()
{
@@ -726,8 +726,9 @@ CompOption::set (CompOption::Value &val)
(!isAction () || !checkIsAction (val.type ())))
{
compLogMessage ("core", CompLogLevelWarn,
- "Can't set Value with type %d to option \"%s\" with type %d",
- val.type (), priv->name.c_str(), priv->type);
+ "Can't set Value with type %d to "
+ "option \"%s\" with type %d",
+ val.type (), priv->name.c_str (), priv->type);
return false;
}