graphics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 279d42bec6c595c2250f586450946f2af536d757
parent 0d12b80708857ba8e82d504fe999745df64bee06
Author: Brian Swetland <swetland@frotz.net>
Date:   Tue, 10 Sep 2013 09:16:17 -0700

stringutils: disallow copy/assign of stackstrings

Diffstat:
Mcommon/stringutils.h | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/common/stringutils.h b/common/stringutils.h @@ -18,6 +18,8 @@ #include <string.h> +#include "types.h" + class stringptr { public: stringptr() : str(""), len(0) {} @@ -80,6 +82,7 @@ public: operator const char *() { return str; } operator stringptr () { return stringptr(str, len); } private: + DISALLOW_COPY_AND_ASSIGN(stackstring<N>); int len; int oops; char str[N];