Browse Source

Comment on purpose of used of ValueExists when reading registry values

Source commit: 2f46b348464a667987d8093deed1104ae0fb9b2a
Martin Prikryl 6 years ago
parent
commit
c9ff171f70
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/core/HierarchicalStorage.cpp

+ 1 - 0
source/core/HierarchicalStorage.cpp

@@ -13,6 +13,7 @@
 //---------------------------------------------------------------------------
 #pragma package(smart_init)
 //---------------------------------------------------------------------------
+// ValueExists test was probably added to avoid registry exceptions when debugging
 #define READ_REGISTRY(Method) \
   if (FRegistry->ValueExists(Name)) \
   try { return FRegistry->Method(Name); } catch(...) { return Default; } \