summaryrefslogtreecommitdiff
path: root/shared/zstring.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
commitb9203ee84953006547f4afd58f405874c87bf0dc (patch)
tree9e41f1533f120e9268e86658c52458630ffd718a /shared/zstring.h
parent3.0 (diff)
downloadFreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip
3.1
Diffstat (limited to 'shared/zstring.h')
-rw-r--r--shared/zstring.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/zstring.h b/shared/zstring.h
index 9c7c2245..68b72060 100644
--- a/shared/zstring.h
+++ b/shared/zstring.h
@@ -107,7 +107,11 @@ public:
static const size_t npos = static_cast<size_t>(-1);
private:
- Zstring(int); //indicates usage error
+ //detect usage errors
+ Zstring(int);
+ friend const Zstring operator+(const DefaultChar* lhs, const Zstring& rhs);
+ friend const Zstring operator+(const DefaultChar ch, const Zstring& rhs);
+
DefaultChar* data();
void initAndCopy(const DefaultChar* source, size_t length);
bgstack15