Browse Source

Sonar fix

Jorrit Rouwe 5 months ago
parent
commit
c52aa1b189
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Jolt/Core/STLLocalAllocator.h

+ 2 - 1
Jolt/Core/STLLocalAllocator.h

@@ -43,7 +43,8 @@ public:
 	/// Constructor used when rebinding to another type. This expects the allocator to use the original memory pool from the first allocator,
 	/// Constructor used when rebinding to another type. This expects the allocator to use the original memory pool from the first allocator,
 	/// but in our case we cannot use the local buffer of the original allocator as it has different size and alignment rules.
 	/// but in our case we cannot use the local buffer of the original allocator as it has different size and alignment rules.
 	/// To solve this we make this allocator fall back to the heap immediately.
 	/// To solve this we make this allocator fall back to the heap immediately.
-	template <class T2>		STLLocalAllocator(const STLLocalAllocator<T2, N> &) : mNumElementsUsed(N) { }
+	template <class T2>
+	explicit				STLLocalAllocator(const STLLocalAllocator<T2, N> &) : mNumElementsUsed(N) { }
 
 
 	/// Check if inPointer is in the local buffer
 	/// Check if inPointer is in the local buffer
 	inline bool				is_local(const_pointer inPointer) const
 	inline bool				is_local(const_pointer inPointer) const