mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
small fixes
This commit is contained in:
parent
8d83c0b2b0
commit
4ed60befbc
@ -9,7 +9,10 @@
|
|||||||
// stores its contents on the stack when possible, in vector<char> otherwise
|
// stores its contents on the stack when possible, in vector<char> otherwise
|
||||||
// NOTE: User should be remember that returned buffer might be on the stack!!
|
// NOTE: User should be remember that returned buffer might be on the stack!!
|
||||||
|
|
||||||
namespace c11log { namespace details {
|
namespace c11log
|
||||||
|
{
|
||||||
|
namespace details
|
||||||
|
{
|
||||||
|
|
||||||
template<std::size_t STACK_SIZE=128>
|
template<std::size_t STACK_SIZE=128>
|
||||||
class fast_buf
|
class fast_buf
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
return _fastbuf.get();
|
return _fastbuf.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset_str()
|
void clear()
|
||||||
{
|
{
|
||||||
_fastbuf.clear();
|
_fastbuf.clear();
|
||||||
}
|
}
|
||||||
@ -73,9 +73,9 @@ public:
|
|||||||
return _dev.buf();
|
return _dev.buf();
|
||||||
}
|
}
|
||||||
|
|
||||||
void reset_str()
|
void clear()
|
||||||
{
|
{
|
||||||
_dev.reset_str();
|
_dev.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user