comparison base/PropertyContainer.cpp @ 690:1424aa29ae95

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:26:52 +0100
parents 06f13a3b9e9e
children e802e550a1f2
comparison
equal deleted inserted replaced
689:573d45e9487b 690:1424aa29ae95
190 if (value >= 0) success = true; 190 if (value >= 0) success = true;
191 else value = 0; 191 else value = 0;
192 break; 192 break;
193 193
194 case InvalidProperty: 194 case InvalidProperty:
195 DEBUG << "PropertyContainer::convertPropertyStrings: Invalid property name \"" << name << "\"" << endl; 195 SVDEBUG << "PropertyContainer::convertPropertyStrings: Invalid property name \"" << name << "\"" << endl;
196 return false; 196 return false;
197 } 197 }
198 198
199 if (success) return true; 199 if (success) return true;
200 200
205 int i = valueString.toInt(&ok); 205 int i = valueString.toInt(&ok);
206 if (!ok) { 206 if (!ok) {
207 std::cerr << "PropertyContainer::convertPropertyStrings: Unable to parse value string \"" << valueString << "\"" << std::endl; 207 std::cerr << "PropertyContainer::convertPropertyStrings: Unable to parse value string \"" << valueString << "\"" << std::endl;
208 return false; 208 return false;
209 } else if (i < min || i > max) { 209 } else if (i < min || i > max) {
210 DEBUG << "PropertyContainer::convertPropertyStrings: Property value \"" << i << "\" outside valid range " << min << " to " << max << endl; 210 SVDEBUG << "PropertyContainer::convertPropertyStrings: Property value \"" << i << "\" outside valid range " << min << " to " << max << endl;
211 return false; 211 return false;
212 } 212 }
213 213
214 value = i; 214 value = i;
215 return true; 215 return true;