diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-28 20:06:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-28 20:06:51 +0300 |
commit | 3b8a3b84346700abffa52745245310bf3eae6b18 (patch) | |
tree | dfe8c94d73da7fc3a350017f1905f3e25b5ec5e0 /src/debug/debug_new.h | |
parent | 1c1860cf83ba5d504b69c0ebd737139c8ab1bd46 (diff) | |
download | manaverse-3b8a3b84346700abffa52745245310bf3eae6b18.tar.gz manaverse-3b8a3b84346700abffa52745245310bf3eae6b18.tar.bz2 manaverse-3b8a3b84346700abffa52745245310bf3eae6b18.tar.xz manaverse-3b8a3b84346700abffa52745245310bf3eae6b18.zip |
Fix formating in other files.
Diffstat (limited to 'src/debug/debug_new.h')
-rw-r--r-- | src/debug/debug_new.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/debug/debug_new.h b/src/debug/debug_new.h index 39f2f59d1..d29a0d4f3 100644 --- a/src/debug/debug_new.h +++ b/src/debug/debug_new.h @@ -142,27 +142,27 @@ extern const char* new_progname; // default to NULL; should be */ class __debug_new_recorder { - const char* _M_file; - const int _M_line; - void _M_process(void* pointer); -public: - /** - * Constructor to remember the call context. The information will - * be used in __debug_new_recorder::operator->*. - */ - __debug_new_recorder(const char* file, int line) - : _M_file(file), _M_line(line) {} - /** - * Operator to write the context information to memory. - * <code>operator->*</code> is chosen because it has the right - * precedence, it is rarely used, and it looks good: so people can - * tell the special usage more quickly. - */ - template <class _Tp> _Tp* operator->*(_Tp* pointer) - { _M_process(pointer); return pointer; } -private: - __debug_new_recorder(const __debug_new_recorder&); - __debug_new_recorder& operator=(const __debug_new_recorder&); + const char* _M_file; + const int _M_line; + void _M_process(void* pointer); + public: + /** + * Constructor to remember the call context. The information will + * be used in __debug_new_recorder::operator->*. + */ + __debug_new_recorder(const char* file, int line) + : _M_file(file), _M_line(line) {} + /** + * Operator to write the context information to memory. + * <code>operator->*</code> is chosen because it has the right + * precedence, it is rarely used, and it looks good: so people can + * tell the special usage more quickly. + */ + template <class _Tp> _Tp* operator->*(_Tp* pointer) + { _M_process(pointer); return pointer; } + private: + __debug_new_recorder(const __debug_new_recorder&); + __debug_new_recorder& operator=(const __debug_new_recorder&); }; /** @@ -173,10 +173,10 @@ private: */ class __debug_new_counter { - static int _S_count; -public: - __debug_new_counter(); - ~__debug_new_counter(); + static int _S_count; + public: + __debug_new_counter(); + ~__debug_new_counter(); }; /** Counting object for each file including debug_new.h. */ static __debug_new_counter __debug_new_count; |