-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added bounds checking for auto-reselection of list based container
contents to prevent a crash from occuring when the item at index 0 is removed for a given list
- Loading branch information
1 parent
575b752
commit fff45a8
Showing
11 changed files
with
68 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#ifndef QXREG_H | ||
#define QXREG_H | ||
#include "qx.h" | ||
#include "Windows_c++17_compat.h" | ||
|
||
namespace Qx | ||
{ | ||
//=============================================================================================================== | ||
// REG | ||
//=============================================================================================================== | ||
|
||
class Reg | ||
{ | ||
//-Inner Classes------------------------------------------------------------------------------------------------ | ||
class RegOpReport | ||
{ | ||
//-Class Functions---------------------------------------------------------------------------------------------- | ||
|
||
}; | ||
|
||
//-Class Functions---------------------------------------------------------------------------------------------- | ||
public: | ||
enum RegHive {HKCR, HKCU, HKLM, HKU, HKCC}; | ||
static QString readRegString(RegHive valueHive, const QString &valueKey, const QString &valueName); | ||
|
||
private: | ||
static HKEY resolveHiveEnum(RegHive regHive); | ||
static LONG getStringRegKey(HKEY hKey, const std::wstring &strValueName, std::wstring &strValue); | ||
static LONG getDWORDRegKey(HKEY hKey, const std::wstring &strValueName, DWORD &nValue, DWORD nDefaultValue); | ||
static LONG getBoolRegKey(HKEY hKey, const std::wstring &strValueName, bool &bValue, bool bDefaultValue); | ||
}; | ||
|
||
} | ||
#endif // REG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters