[PowerRename] Use int type instead of long in PowerRename Settings (#2502)

* Fix signed/unsigned comparison in power rename Settings.

* Use int instead of long (same on 64-bit windows).
This commit is contained in:
vldmr11080
2020-05-01 13:26:38 +02:00
committed by GitHub
parent 8908bd9889
commit 64df515c63
2 changed files with 24 additions and 24 deletions

View File

@@ -61,22 +61,22 @@ public:
settings.MRUEnabled = MRUEnabled;
}
inline long GetMaxMRUSize() const
inline unsigned int GetMaxMRUSize() const
{
return settings.maxMRUSize;
}
inline void SetMaxMRUSize(long maxMRUSize)
inline void SetMaxMRUSize(unsigned int maxMRUSize)
{
settings.maxMRUSize = maxMRUSize;
}
inline long GetFlags() const
inline unsigned int GetFlags() const
{
return settings.flags;
}
inline void SetFlags(long flags)
inline void SetFlags(unsigned int flags)
{
settings.flags = flags;
Save();
@@ -115,8 +115,8 @@ private:
bool extendedContextMenuOnly{ false }; // Disabled by default.
bool persistState{ true };
bool MRUEnabled{ true };
long maxMRUSize{ 10 };
long flags{ 0 };
unsigned int maxMRUSize{ 10 };
unsigned int flags{ 0 };
std::wstring searchText{};
std::wstring replaceText{};
};