diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-19 23:49:49 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-19 23:49:49 -0800 |
commit | b9e2cb295e8f53f0311d8e3b5b0edf69bb76ea78 (patch) | |
tree | 4d79470cc12b14a84395df68829385ed464d8e9c /src | |
parent | 32bb7218cec6d6176ba1a026fdb7cde9e6e1df2e (diff) |
Having String.set returning this.
Diffstat (limited to 'src')
-rw-r--r-- | src/BString.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/BString.cc b/src/BString.cc index 74156bf..74bc7d9 100644 --- a/src/BString.cc +++ b/src/BString.cc @@ -4,7 +4,7 @@ #include "Printer.h" #include "BString.h" -void Balau::String::set(const char * fmt, va_list ap) { +Balau::String & Balau::String::set(const char * fmt, va_list ap) { unsigned int l; #ifdef _WIN32 // Microsoft is stupid. @@ -18,6 +18,8 @@ void Balau::String::set(const char * fmt, va_list ap) { assign(t, l); free(t); #endif + + return *this; } int Balau::String::strchrcnt(char c) const { |