~smspillaz/compiz-animation-plugin/trunk

« back to all changes in this revision

Viewing changes to src/options.cpp

  • Committer: Sam Spilsbury
  • Date: 2010-10-23 15:41:33 UTC
  • Revision ID: git-v1:b167f709dff3422ed376e84f1e5aa7beb64b1cc1
Cleanup (static analysis)

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
bool
78
78
IdValuePair::matchesPluginOption (ExtensionPluginInfo *testPluginInfo,
79
 
                                  int testOptionId)
 
79
                                  int testOptionId) const
80
80
{
81
81
    return (pluginInfo == testPluginInfo &&
82
82
            optionId == testOptionId);
125
125
 
126
126
    // Find the first substring with no spaces in it
127
127
    sscanf (optNamesValuesOrig, " %s ", optNamesValues);
128
 
    if (strlen (optNamesValues) == 0)
 
128
    if (!strlen (optNamesValues))
129
129
    {
130
130
        free (optNamesValues);
131
131
        return;
167
167
        }
168
168
 
169
169
        sscanf (name, " %s ", nameTrimmed);
170
 
        if (strlen (nameTrimmed) == 0)
 
170
        if (!strlen (nameTrimmed))
171
171
        {
172
172
            errorNo = 2;
173
173
            break;