Browse Source

Correctly typed NULL constant

Source commit: 4fdde2cd642c8e22c3ad30737394cc63bf21504a
Martin Prikryl 9 years ago
parent
commit
5b710e80d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/forms/CustomCommand.cpp

+ 1 - 1
source/forms/CustomCommand.cpp

@@ -218,7 +218,7 @@ void __fastcall TCustomCommandDialog::FormCloseQuery(TObject * /*Sender*/,
       }
 
       if (((FMode == ccmAdd) || ((FMode == ccmEdit) && (Desc != FOrigDescription))) &&
-          (FCustomCommandList->Find(Desc) != 0))
+          (FCustomCommandList->Find(Desc) != NULL))
       {
         DescriptionEdit->SetFocus();
         throw Exception(FMTLOAD(CUSTOM_COMMAND_DUPLICATE, (Desc)));