tycho: use consistent style for storage duration modifiers
parent
16b3e03cfa
commit
a79f814d3c
|
@ -1,13 +1,15 @@
|
||||||
#include "tycho.h"
|
#include "tycho.h"
|
||||||
|
|
||||||
static ProjectModel *makeModel(Project *proj)
|
static
|
||||||
|
ProjectModel *makeModel(Project *proj)
|
||||||
{
|
{
|
||||||
switch(proj->getType()) {
|
switch(proj->getType()) {
|
||||||
case ProjectType::Map: return new MapModel(proj);
|
case ProjectType::Map: return new MapModel(proj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static ProjectView *makeView(Project *proj)
|
static
|
||||||
|
ProjectView *makeView(Project *proj)
|
||||||
{
|
{
|
||||||
switch(proj->getType()) {
|
switch(proj->getType()) {
|
||||||
case ProjectType::Map: return new MapView(proj);
|
case ProjectType::Map: return new MapView(proj);
|
||||||
|
|
|
@ -169,8 +169,8 @@ private:
|
||||||
#pragma clang diagnostic ignored "-Wformat-security"
|
#pragma clang diagnostic ignored "-Wformat-security"
|
||||||
|
|
||||||
template<typename... VA>
|
template<typename... VA>
|
||||||
static inline void dbgPrint([[maybe_unused]] char const *fmt,
|
static inline
|
||||||
[[maybe_unused]] VA &&...va)
|
void dbgPrint([[maybe_unused]] char const *fmt, [[maybe_unused]] VA &&...va)
|
||||||
{
|
{
|
||||||
#ifdef TYCHO_DEBUG_ASSERTIONS
|
#ifdef TYCHO_DEBUG_ASSERTIONS
|
||||||
qDebug(fmt, std::forward<VA>(va)...);
|
qDebug(fmt, std::forward<VA>(va)...);
|
||||||
|
@ -181,7 +181,8 @@ static inline void dbgPrint([[maybe_unused]] char const *fmt,
|
||||||
|
|
||||||
#define dbgPrintFunc() dbgPrint("%s", __func__)
|
#define dbgPrintFunc() dbgPrint("%s", __func__)
|
||||||
|
|
||||||
constexpr std::uint32_t fourCC(std::byte a, std::byte b, std::byte c, std::byte d)
|
constexpr
|
||||||
|
std::uint32_t fourCC(std::byte a, std::byte b, std::byte c, std::byte d)
|
||||||
{
|
{
|
||||||
return (a << 24) | (b << 16) | (c << 8) | d;
|
return (a << 24) | (b << 16) | (c << 8) | d;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue