Minor improvements
This commit is contained in:
@@ -146,4 +146,3 @@ namespace Nz
|
||||
}
|
||||
|
||||
#include <Nazara/Core/DebugOff.hpp>
|
||||
#include "ApplicationBase.hpp"
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Nz
|
||||
ModuleBase<T>::ModuleBase(std::string moduleName, T* pointer, NoLog) :
|
||||
m_moduleName(std::move(moduleName))
|
||||
{
|
||||
NazaraAssert(T::s_instance == nullptr, "only one instance of " + m_moduleName + " can exist at a given time");
|
||||
NazaraAssertFmt(T::s_instance == nullptr, "only one instance of {} can exist at a given time", m_moduleName);
|
||||
T::s_instance = pointer;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Nz
|
||||
template<typename Type, typename Parameters>
|
||||
bool ResourceSaver<Type, Parameters>::IsExtensionSupported(std::string_view extension) const
|
||||
{
|
||||
NazaraAssert(extension.size() >= 2 || extension.front() != '.', "extension should start with a .");
|
||||
NazaraAssertFmt(extension.size() >= 2 || extension.front() != '.', "extension should start with a . (got {})", extension);
|
||||
|
||||
for (const auto& saverPtr : m_savers)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user