Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Side by Side Diff: tools/flags/SkCommandLineFlags.h

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/filtermain.cpp ('k') | tools/picture_utils.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SK_COMMAND_LINE_FLAGS_H 8 #ifndef SK_COMMAND_LINE_FLAGS_H
9 #define SK_COMMAND_LINE_FLAGS_H 9 #define SK_COMMAND_LINE_FLAGS_H
10 10
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 , fHelpString(helpString) 409 , fHelpString(helpString)
410 , fBoolValue(NULL) 410 , fBoolValue(NULL)
411 , fDefaultBool(false) 411 , fDefaultBool(false)
412 , fIntValue(NULL) 412 , fIntValue(NULL)
413 , fDefaultInt(0) 413 , fDefaultInt(0)
414 , fDoubleValue(NULL) 414 , fDoubleValue(NULL)
415 , fDefaultDouble(0) 415 , fDefaultDouble(0)
416 , fStrings(NULL) { 416 , fStrings(NULL) {
417 fNext = SkCommandLineFlags::gHead; 417 fNext = SkCommandLineFlags::gHead;
418 SkCommandLineFlags::gHead = this; 418 SkCommandLineFlags::gHead = this;
419 SkASSERT(NULL != name && strlen(name) > 1); 419 SkASSERT(name && strlen(name) > 1);
420 SkASSERT(NULL == shortName || 1 == strlen(shortName)); 420 SkASSERT(NULL == shortName || 1 == strlen(shortName));
421 } 421 }
422 422
423 /** 423 /**
424 * Set a StringArray to hold the values stored in defaultStrings. 424 * Set a StringArray to hold the values stored in defaultStrings.
425 * @param array The StringArray to modify. 425 * @param array The StringArray to modify.
426 * @param defaultStrings Space separated list of strings that should be ins erted into array 426 * @param defaultStrings Space separated list of strings that should be ins erted into array
427 * individually. 427 * individually.
428 */ 428 */
429 static void SetDefaultStrings(SkCommandLineFlags::StringArray* array, 429 static void SetDefaultStrings(SkCommandLineFlags::StringArray* array,
(...skipping 11 matching lines...) Expand all
441 double* fDoubleValue; 441 double* fDoubleValue;
442 double fDefaultDouble; 442 double fDefaultDouble;
443 SkCommandLineFlags::StringArray* fStrings; 443 SkCommandLineFlags::StringArray* fStrings;
444 // Both for the help string and in case fStrings is empty. 444 // Both for the help string and in case fStrings is empty.
445 SkString fDefaultString; 445 SkString fDefaultString;
446 446
447 // In order to keep a linked list. 447 // In order to keep a linked list.
448 SkFlagInfo* fNext; 448 SkFlagInfo* fNext;
449 }; 449 };
450 #endif // SK_COMMAND_LINE_FLAGS_H 450 #endif // SK_COMMAND_LINE_FLAGS_H
OLDNEW
« no previous file with comments | « tools/filtermain.cpp ('k') | tools/picture_utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698