mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-01 14:57:18 +01:00 
			
		
		
		
	Discard instances of constant StackStrF parameters. This should always be non-const if possible.
This commit is contained in:
		| @@ -1888,6 +1888,16 @@ struct StackStrF | ||||
|         CacheHash(); | ||||
|         return GetHash(); | ||||
|     } | ||||
|  | ||||
|     ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
|     /// Provide a dummy non constant instance when calling functions that can work with placeholders. | ||||
|     ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
|     static StackStrF & Dummy() | ||||
|     { | ||||
|         static StackStrF o; | ||||
|         o.Release(); | ||||
|         return o; | ||||
|     } | ||||
| }; | ||||
|  | ||||
| ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
| @@ -2122,7 +2132,7 @@ template<class T> struct is_reference<T&> | ||||
|  | ||||
|  | ||||
| ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
| /// Fast integer to string implementation to avoid using itoa. See https://github.com/jeaiii/itoa  | ||||
| /// Fast integer to string implementation to avoid using itoa. See https://github.com/jeaiii/itoa | ||||
| ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user