Skip to content

Commit 9f9fff2

Browse files
authored
Merge pull request #4218 from rtischer8277/patch-3
Add left-out nullptr for example code in SetValue
2 parents 7888061 + 07e9c20 commit 9f9fff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mfc/reference/cmfcpropertygridproperty-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ virtual void SetValue(const _variant_t& varValue);
14391439
void SetPropBarValue(UINT propId, const DWORD& barPropDwordValue)
14401440
{
14411441
auto property = propertiesGridCtrlList.FindItemByData(propId);
1442-
if (property != NULL)
1442+
if (property != nullptr)
14431443
{
14441444
property->SetValue(static_cast<_variant_t >(barPropDwordValue == 1)); // set value to true or false depending on dword value
14451445
}

0 commit comments

Comments
 (0)