зеркало из https://github.com/mozilla/pjs.git
Bug 577908 mark DEBUG only variables as ifdef DEBUG in nsCommandGroup.cpp
r=neil
This commit is contained in:
Родитель
cd45bee9aa
Коммит
6565114469
|
@ -271,7 +271,10 @@ nsControllerCommandGroup::AddCommandToGroup(const char * aCommand, const char *a
|
|||
char* commandString = NS_strdup(aCommand); // we store allocated PRUnichar* in the array
|
||||
if (!commandString) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
PRBool appended = commandList->AppendElement(commandString) != nsnull;
|
||||
#ifdef DEBUG
|
||||
char** appended =
|
||||
#endif
|
||||
commandList->AppendElement(commandString);
|
||||
NS_ASSERTION(appended, "Append failed");
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче