We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd2159 commit 92e3e36Copy full SHA for 92e3e36
GeneralsMD/Code/GameEngine/Include/Common/SparseMatchFinder.h
@@ -204,9 +204,12 @@ class SparseMatchFinder
204
//-------------------------------------------------------------------------------------------------
205
SparseMatchFinder& operator=(const SparseMatchFinder& other)
206
{
207
- if ((FLAGS & SparseMatchFinderFlags_NoCopy) == 0 && this != &other)
+ if CONSTEXPR ((FLAGS & SparseMatchFinderFlags_NoCopy) == 0)
208
209
- m_bestMatches = other.m_bestMatches;
+ if (this != &other)
210
+ {
211
+ m_bestMatches = other.m_bestMatches;
212
+ }
213
}
214
return *this;
215
0 commit comments