mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Cpp11 patchset 11: continue working on constructor style migration (#6004)
This commit is contained in:
parent
8f7785771b
commit
4faaadc8d5
39 changed files with 200 additions and 396 deletions
|
@ -42,9 +42,7 @@ extern Profiler *g_profiler;
|
|||
class Profiler
|
||||
{
|
||||
public:
|
||||
Profiler()
|
||||
{
|
||||
}
|
||||
Profiler() {}
|
||||
|
||||
void add(const std::string &name, float value)
|
||||
{
|
||||
|
@ -195,9 +193,9 @@ public:
|
|||
ScopeProfilerType type = SPT_ADD);
|
||||
~ScopeProfiler();
|
||||
private:
|
||||
Profiler *m_profiler;
|
||||
Profiler *m_profiler = nullptr;
|
||||
std::string m_name;
|
||||
TimeTaker *m_timer;
|
||||
TimeTaker *m_timer = nullptr;
|
||||
enum ScopeProfilerType m_type;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue