StringBufferPatch.diff

Zbigniew Rebacz, 09/22/2020 07:21 PM

Download (23.8 KB)

View differences:

CodeEditor/CSyntax.cpp (working copy)
79 79
		else
80 80
			wbuf.Cat(*p++);
81 81
	}
82
	return wbuf;
82
	return WString(wbuf);
83 83
}
84 84

  
85 85
int LastC(const wchar *b, const wchar *e)
Core/CharSet.cpp (working copy)
2053 2053
		return FromUtf8(src, l);
2054 2054
	WStringBuffer result(l);
2055 2055
	ToUnicode(result, src, l, charset);
2056
	return result;
2056
	return WString(result);
2057 2057
}
2058 2058

  
2059 2059
WString ToUnicode(const String& src, byte charset)
......
2068 2068
		return ToUtf8(src, len);
2069 2069
	StringBuffer result(len);
2070 2070
	FromUnicode(result, src, len, charset, defchar);
2071
	return result;
2071
	return String(result);
2072 2072
}
2073 2073

  
2074 2074
String FromUnicodeBuffer(const wchar *src)
......
2094 2094
		return ToUtf8(ToUnicode(src, scharset));
2095 2095
	StringBuffer result(slen);
2096 2096
	ConvertCharset(result, charset, src, scharset, slen);
2097
	return result;
2097
	return String(result);
2098 2098
}
2099 2099

  
2100 2100
WString InitCaps(const wchar *s)
......
2125 2125
			r[i] = ToLower(c);
2126 2126
		spc = !IsLeNum(c);
2127 2127
	}
2128
	return r;
2128
	return WString(r);
2129 2129
}
2130 2130

  
2131 2131
WString ToUpper(const WString& w)
......
2133 2133
	int l = w.GetLength();
2134 2134
	WStringBuffer r(l);
2135 2135
	ToUpper(r, w, l);
2136
	return r;
2136
	return WString(r);
2137 2137
}
2138 2138

  
2139 2139
WString ToLower(const WString& w)
......
2141 2141
	int l = w.GetLength();
2142 2142
	WStringBuffer r(l);
2143 2143
	ToLower(r, w, l);
2144
	return r;
2144
	return WString(r);
2145 2145
}
2146 2146

  
2147 2147
WString ToAscii(const WString& w)
......
2149 2149
	int l = w.GetLength();
2150 2150
	WStringBuffer r(l);
2151 2151
	ToAscii(r, w, l);
2152
	return r;
2152
	return WString(r);
2153 2153
}
2154 2154

  
2155 2155
String InitCaps(const char *s, byte charset)
......
2165 2165
	int l = (int)strlen(s);
2166 2166
	StringBuffer r(l);
2167 2167
	ToUpper(r, s, l, charset);
2168
	return r;
2168
	return String(r);
2169 2169
}
2170 2170

  
2171 2171
String ToLower(const char *s, byte charset)
......
2176 2176
	int l = (int)strlen(s);
2177 2177
	StringBuffer r(l);
2178 2178
	ToLower(r, s, l, charset);
2179
	return r;
2179
	return String(r);
2180 2180
}
2181 2181

  
2182 2182
String ToAscii(const char *s, byte charset)
......
2187 2187
	int l = (int)strlen(s);
2188 2188
	StringBuffer r(l);
2189 2189
	ToAscii(r, s, l, charset);
2190
	return r;
2190
	return String(r);
2191 2191
}
2192 2192

  
2193 2193
String ToUpper(const String& s, byte charset)
......
2198 2198
	int l = s.GetLength();
2199 2199
	StringBuffer r(l);
2200 2200
	ToUpper(r, s, l, charset);
2201
	return r;
2201
	return String(r);
2202 2202
}
2203 2203

  
2204 2204
String ToLower(const String& s, byte charset)
......
2209 2209
	int l = s.GetLength();
2210 2210
	StringBuffer r(l);
2211 2211
	ToLower(r, s, l, charset);
2212
	return r;
2212
	return String(r);
2213 2213
}
2214 2214

  
2215 2215
String ToAscii(const String& s, byte charset)
......
2220 2220
	int l = s.GetLength();
2221 2221
	StringBuffer r(l);
2222 2222
	ToAscii(r, s, l, charset);
2223
	return r;
2223
	return String(r);
2224 2224
}
2225 2225

  
2226 2226
String ToUpperAscii(const String& s, byte charset)
......
2231 2231
	int l = s.GetLength();
2232 2232
	StringBuffer r(l);
2233 2233
	ToAscii(r, s, l, charset);
2234
	return r;
2234
	return String(r);
2235 2235
}
2236 2236

  
2237 2237
String ToLowerAscii(const String& s, byte charset)
......
2242 2242
	int l = s.GetLength();
2243 2243
	StringBuffer r(l);
2244 2244
	ToAscii(r, s, l, charset);
2245
	return r;
2245
	return String(r);
2246 2246
}
2247 2247

  
2248 2248
bool IsDoubleWidth(int c)
Core/Format.cpp (working copy)
64 64
	if(dwd < width)
65 65
		memset(o, lpad, pad);
66 66
	memcpy8(o + pad, p, dwd);
67
	return out;
67
	return String(out);
68 68
}
69 69

  
70 70
String FormatInt(int i)
......
382 382
	}
383 383
	out.Cat(flags & FD_CAP_E ? 'E' : 'e');
384 384
	out.Cat(FormatIntDec(exp, fill_exp, '0', flags & FD_SIGN_EXP));
385
	return out;
385
	return String(out);
386 386
}
387 387

  
388 388
String FormatDate(Date date, const char *format, int language)
......
577 577
	StringBuffer q;
578 578
	q.SetLength(1000);
579 579
	q.SetLength(sprintf(q, '%' + f.format + f.id, (int)f.arg));
580
	return q;
580
	return String(q);
581 581
}
582 582

  
583 583
String Int64Formatter(const Formatting& f)
......
585 585
	StringBuffer q;
586 586
	q.SetLength(1000);
587 587
	q.SetLength(sprintf(q, '%' + f.format + f.id, (int64)f.arg));
588
	return q;
588
	return String(q);
589 589
}
590 590

  
591 591
String IntLowerAlphaFormatter(const Formatting& f)
......
1148 1148
			x.Cat('%');
1149 1149
		x.Cat(*text++);
1150 1150
	}
1151
	return x;
1151
	return String(x);
1152 1152
}
1153 1153

  
1154 1154
}
Core/Huge.cpp (working copy)
41 41
		Panic("String is too big!");
42 42
	StringBuffer sb((int)size);
43 43
	Get(~sb, 0, size);
44
	return sb;
44
	return String(sb);
45 45
}
46 46

  
47 47
}
Core/InetUtil.cpp (working copy)
124 124
		else
125 125
			out << '%' << hex_digits[(*p >> 4) & 15] << hex_digits[*p & 15];
126 126
	}
127
	return out;
127
	return String(out);
128 128
}
129 129

  
130 130
String UrlEncode(const char *s, int len)
......
156 156
		}
157 157
		else
158 158
			out.Cat(*p);
159
	return out;
159
	return String(out);
160 160
}
161 161

  
162 162
String UrlDecode(const char *s, int len)
......
179 179
			r.Cat(s[0]);
180 180
			len++;
181 181
		}
182
		else 
182
		else
183 183
		if(s[0] == '\r')
184 184
			;
185 185
		else
......
209 209
		}
210 210
		s++;
211 211
	}
212
	return r;
212
	return String(r);
213 213
}
214 214
    
215 215
String QPDecode(const char *s, bool underscore_to_space)
......
232 232
		else
233 233
			r.Cat(c);
234 234
	}
235
	return r;
235
	return String(r);
236 236
}
237 237

  
238 238
String Base64Encode(const char *_b, const char *_e)
......
272 272
		p[2] = encoder[(b[1] << 2) & 0x3C];
273 273
		p[3] = '=';
274 274
	}
275
	return s;
275
	return String(s);
276 276
}
277 277

  
278 278
String Base64Encode(const char *b, int len)
......
330 330
				out.Cat((c[2] << 6) | (c[3] >> 0));
331 331
		}
332 332
	}
333
	return out;
333
	return String(out);
334 334
}
335 335

  
336 336
String Base64Decode(const char *s, int len)
Core/Socket.cpp (working copy)
834 834
	if(!done && IsEof())
835 835
		return String::GetVoid();
836 836
	out.SetLength(done);
837
	return out;
837
	return String(out);
838 838
}
839 839

  
840 840
bool  TcpSocket::GetAll(void *buffer, int len)
Core/SplitMerge.cpp (working copy)
173 173
			r.Cat(im[i]);
174 174
			next = true;
175 175
		}
176
	return r;
176
	return T(r);
177 177
}
178 178

  
179 179
String Join(const Vector<String>& im, const String& delim, bool ignoreempty) {
Core/Stream.cpp (working copy)
176 176
	StringBuffer b(size);
177 177
	int n = Get(~b, size);
178 178
	b.SetCount(n);
179
	return b;
179
	return String(b);
180 180
}
181 181

  
182 182
String Stream::GetAll(int size)
......
1218 1218
			StringBuffer s((int)size);
1219 1219
			in.Get(s, (int)size);
1220 1220
			if(!in.IsError())
1221
				return s;
1221
				return String(s);
1222 1222
		}
1223 1223
	}
1224 1224
	return String::GetVoid();
Core/Utf.cpp (working copy)
53 53
	StringBuffer r;
54 54
	r.Reserve(len);
55 55
	FromUtf16_([&](const wchar *, dword code) { ToUtf8_([&](char c) { r.Cat(c); }, code); }, s, len);
56
	return r;
56
	return String(r);
57 57
}
58 58

  
59 59
int Utf16Len(const dword *s, int len)
......
76 76
	r.Reserve(len);
77 77
	for(const dword *lim = s + len; s < lim; s++)
78 78
		ToUtf16_([&](wchar c) { r.Cat(c); }, *s);
79
	return r;
79
	return WString(r);
80 80
}
81 81

  
82 82
int Utf16Len(const char *s, int len)
......
95 95
{
96 96
	WStringBuffer r;
97 97
	FromUtf8_([&](const byte *, dword code) { ToUtf16_([&](wchar c) { r.Cat(c); }, code); }, s, len);
98
	return r;
98
	return WString(r);
99 99
}
100 100

  
101 101
int Utf32Len(const char *s, int len)
......
146 146
	while(s < lim)
147 147
		*t++ = (byte)*s < 128 ? *s++ : ToAscii(FetchUtf8(s, lim));
148 148
	r.SetLength(int(t - ~r));
149
	return r;
149
	return String(r);
150 150
}
151 151

  
152 152
String Utf8ToUpperAscii(const String& src)
......
160 160
		*t++ = (byte)*s <= 'Z' ? *s++ : ToUpperAscii(FetchUtf8(s, lim));
161 161
	}
162 162
	r.SetLength(int(t - ~r));
163
	return r;
163
	return String(r);
164 164
}
165 165

  
166 166
String Utf8ToLowerAscii(const String& src)
......
173 173
	while(s < lim)
174 174
		*t++ = ToLowerAscii(FetchUtf8(s, lim));
175 175
	r.SetLength(int(t - ~r));
176
	return r;
176
	return String(r);
177 177
}
178 178

  
179 179
};
Core/Util.cpp (working copy)
392 392
	for(;;) {
393 393
		for(int q = 0; q < sep; q++) {
394 394
			if(i >= count)
395
				return b;
395
				return String(b);
396 396
			*t++ = itoc[(s[i] & 0xf0) >> 4];
397 397
			*t++ = itoc[s[i] & 0x0f];
398 398
			i++;
399 399
		}
400 400
		if(i >= count)
401
			return b;
401
			return String(b);
402 402
		*t++ = sepchr;
403 403
	}
404 404
}
......
467 467
		else
468 468
			r.Cat(*s++);
469 469
	}
470
	return r;
470
	return String(r);
471 471
}
472 472

  
473 473
String NormalizeSpaces(const char *s, const char *end)
......
485 485
		else
486 486
			r.Cat(*s++);
487 487
	}
488
	return r;
488
	return String(r);
489 489
}
490 490

  
491 491
String CsvString(const String& text)
......
569 569
		else
570 570
			result.Cat(b, s);
571 571
	}
572
	return result;
572
	return String(result);
573 573
}
574 574

  
575 575
int ChNoInvalid(int c)
......
599 599
	if(q <= 0)
600 600
		return src;
601 601
	b.SetCount(q);
602
	return b;
602
	return String(b);
603 603
}
604 604

  
605 605
String ToSystemCharset(const String& src)
Core/Vcont.cpp (working copy)
107 107
	StringBuffer ss;
108 108
	for(int i = GetLast(); i >= 0; i--)
109 109
		ss << FormatIntHex(bp[i]);
110
	return ss;
110
	return String(ss);
111 111
}
112 112

  
113 113
void Bits::Serialize(Stream& s)
Core/Win32Util.cpp (working copy)
61 61
	StringBuffer temp(count);
62 62
	for(char *p = temp, *e = p + count; p < e;)
63 63
		*p++ = (char)*buffer++;
64
	return temp;
64
	return String(temp);
65 65
}
66 66

  
67 67
String AsString(const wchar_t *buffer, const wchar_t *end) {
......
90 90
		len--;
91 91
	raw_len.SetLength(len);
92 92
	RegCloseKey(key);
93
	return raw_len;
93
	return String(raw_len);
94 94
}
95 95

  
96 96
int GetWinRegInt(const char *value, const char *path, HKEY base_key, dword wow) {
Core/XML.cpp (working copy)
24 24
	StringBuffer result;
25 25
	for(; *s; s++)
26 26
		sDeXmlChar(result, *s, charset, escapelf);
27
	return result;
27
	return String(result);
28 28
}
29 29

  
30 30
String DeXml(const char *s, const char *end, byte charset, bool escapelf)
......
34 34
	StringBuffer result;
35 35
	for(; s < end; s++)
36 36
		sDeXmlChar(result, *s, charset, escapelf);
37
	return result;
37
	return String(result);
38 38
}
39 39

  
40 40
String DeXml(const String& s, byte charset, bool escapelf)
......
51 51
	if(standalone)
52 52
		r << " standalone=\"" << standalone << "\"";
53 53
	r << " ?>\r\n";
54
	return r;
54
	return String(r);
55 55
}
56 56

  
57 57
String XmlPI(const char *text)
58 58
{
59 59
	StringBuffer r;
60 60
	r << "<?" << text << "?>\r\n";
61
	return r;
61
	return String(r);
62 62
}
63 63

  
64 64
String XmlDecl(const char *text)
65 65
{
66 66
	StringBuffer r;
67 67
	r << "<!" << text << ">\r\n";
68
	return r;
68
	return String(r);
69 69
}
70 70

  
71 71
String XmlDocType(const char *text)
......
82 82
{
83 83
	StringBuffer out;
84 84
	out << "<!-- " << text << " -->\r\n";
85
	return out;
85
	return String(out);
86 86
}
87 87

  
88 88
String  XmlTag::operator()()
......
120 120
		else
121 121
		if(first) {
122 122
			r << text << end;
123
			return r;
123
			return String(r);
124 124
		}
125 125
		first = false;
126 126
		wasslash = false;
......
142 142
	if(!first)
143 143
		r << "\r\n";
144 144
	r << end;
145
	return r;
145
	return String(r);
146 146
}
147 147

  
148 148
String  XmlTag::Text(const char *text, byte charset)
......
707 707
			out.Cat(t);
708 708
		else if(IsEnd()) {
709 709
			PassEnd();
710
			return out;
710
			return String(out);
711 711
		}
712 712
		else
713 713
			Skip();
Core/parser.cpp (working copy)
196 196
		result.Cat(*term++);
197 197
	}
198 198
	DoSpaces();
199
	return result;
199
	return String(result);
200 200
}
201 201

  
202 202
bool CParser::IsInt() const {
......
381 381
		if(*term == delim) {
382 382
			term++;
383 383
			DoSpaces();
384
			return result;
384
			return String(result);
385 385
		}
386 386
		else
387 387
		if(*term == '\\') {
......
452 452
			if((byte)*term < ' ' && *term != '\t') {
453 453
				if(chkend) {
454 454
					ThrowError("Unterminated string");
455
					return result;
455
					return String(result);
456 456
				}
457 457
				if(*term == '\0')
458
					return result;
458
					return String(result);
459 459
			}
460 460
			result.Cat(*term++);
461 461
		}
462 462
	}
463 463
	DoSpaces();
464
	return result;
464
	return String(result);
465 465
}
466 466

  
467 467
String CParser::ReadOneString(bool chkend)
......
700 700
		s++;
701 701
	}
702 702
	t.Cat('\"');
703
	return t;
703
	return String(t);
704 704
}
705 705

  
706 706
String AsCString(const char *s, int linemax, const char *linepfx, dword flags)
Core/z.cpp (working copy)
490 490
	int clen = LZ4_compress_default((const char *)s, ~b + sizeof(int), sz, (int)maxsize);
491 491
	b.SetCount(clen + sizeof(int));
492 492
	b.Shrink();
493
	return b;
493
	return String(b);
494 494
}
495 495

  
496 496
String FastCompress(const String& s)
......
503 503
	int sz = *(int *)~data;
504 504
	StringBuffer b(sz);
505 505
	LZ4_decompress_safe(~data + sizeof(int), b, data.GetCount() - sizeof(int), sz);
506
	return b;
506
	return String(b);
507 507
}
508 508

  
509 509
// following function is used in both plugin/lz4 and plugin/zstd
CppBase/Parser.cpp (working copy)
483 483
			spc = true;
484 484
		p++;
485 485
	}
486
	return r;
486
	return String(r);
487 487
}
488 488

  
489 489
String Parser::Name(String& name, bool& castoper, bool& oper)
CppBase/cpp.cpp (working copy)
100 100
										prefix_macro = bid;
101 101
									else
102 102
										prefix_macro = String(' ', 1) + bid; // do not want to emit grounding in body
103
									return r;
103
									return String(r);
104 104
								}
105 105
								else
106 106
								if(*s == '\"' || *s == '\'')
......
147 147
		else
148 148
			r.Cat(*s++);
149 149
	}
150
	return r;
150
	return String(r);
151 151
}
152 152

  
153 153
void Cpp::DoFlatInclude(const String& header_path)
CtrlCore/MetaFile.cpp (working copy)
130 130
	int size = ::GetEnhMetaFileBits(hemf, 0, 0);
131 131
	StringBuffer b(size);
132 132
	::GetEnhMetaFileBits(hemf, size, (BYTE *)~b);
133
	return b;
133
	return String(b);
134 134
}
135 135

  
136 136
void WinMetaFile::Serialize(Stream& s) {
CtrlCore/Win32Clip.cpp (working copy)
408 408
	byte *p = (byte *)~b;
409 409
	memcpy(p, &header, sizeof(header));
410 410
	memcpy(p + sizeof(header), ~img, 4 * img.GetLength());
411
	return b;
411
	return String(b);
412 412
}
413 413

  
414 414
String sImage(const Value& image)
CtrlLib/ChWin32.cpp (working copy)
194 194
		RawCat(key, part);
195 195
		RawCat(key, state);
196 196
		RawCat(key, sz);
197
		return key;
197
		return String(key);
198 198
	}
199 199
	virtual Image Make() const {
200 200
		Rect rr(sz);
CtrlLib/Text.cpp (working copy)
678 678
		if(size == 0) break;
679 679
		pos = 0;
680 680
	}
681
	return r;
681
	return WString(r);
682 682
}
683 683

  
684 684
String TextCtrl::Get(int64 pos, int size, byte charset) const
......
707 707
			if(size == 0) break;
708 708
			pos = 0;
709 709
		}
710
		return r;
710
		return String(r);
711 711
	}
712 712
	return FromUnicode(GetW(pos, size), charset);
713 713
}
Draw/DrawText.cpp (working copy)
17 17
			*t++ = *s++;
18 18
			n--;
19 19
		}
20
		return b;
20
		return WString(b);
21 21
	}
22 22
#endif
23 23
	return ToUnicode(s, n, cs);
Draw/ImageBlit.cpp (working copy)
79 79
			}
80 80
		}
81 81
	}
82
	return r;
82
	return String(r);
83 83
}
84 84

  
85 85
int Premultiply(RGBA *t, const RGBA *s, int len)
Draw/MakeCache.cpp (working copy)
13 13
		s.Cat(typeid(*m).name());
14 14
		RawCat(s, paintonly);
15 15
		s.Cat(m->Key());
16
		return s;
16
		return String(s);
17 17
	}
18 18
	virtual int    Make(Value& object) const {
19 19
		Image img = m->Make();
......
140 140
		RawCat(h, sz.cy);
141 141
		RawCat(h, img.GetSerialId());
142 142
		RawCat(h, filter);
143
		return h;
143
		return String(h);
144 144
	}
145 145

  
146 146
	virtual Image Make() const {
......
195 195
		StringBuffer h;
196 196
		RawCat(h, color);
197 197
		RawCat(h, img.GetSerialId());
198
		return h;
198
		return String(h);
199 199
	}
200 200

  
201 201
	virtual Image Make() const {
Draw/SDrawText.cpp (working copy)
28 28
		RawCat(h, angle);
29 29
		RawCat(h, color);
30 30
		RawCat(h, yy);
31
		return h;
31
		return String(h);
32 32
	}
33 33

  
34 34
	virtual Image Make() const {
Esc/EscArray.cpp (working copy)
106 106
					s.Cat(c);
107 107
			}
108 108
	}
109
	return s;
109
	return WString(s);
110 110
}
111 111

  
112 112
void EscValue::InitString(const WString& s)
Esc/EscValue.cpp (working copy)
280 280
			r << lambda->arg[i];
281 281
		}
282 282
		r << ")\n" << lambda->code;
283
		return r;
283
		return String(r);
284 284
	case ESC_MAP:
285 285
		r << ind << "{ ";
286 286
		int c = min(map->map.GetCount(), 100);
Oracle/Oci8.cpp (working copy)
1707 1707
	out.SetCount(nchars);
1708 1708
	Seek(0);
1709 1709
	Stream::Get(out, 2 * nchars);
1710
	return out;
1710
	return WString(out);
1711 1711
}
1712 1712

  
1713 1713
void OracleClob::Write(const WString& w)
PdfDraw/PdfDraw.cpp (working copy)
277 277
		b.Cat(*s++);
278 278
	}
279 279
	b.Cat(')');
280
	return b;
280
	return String(b);
281 281
}
282 282

  
283 283
void PdfDraw::PutFontHeight(int fi, double ht)
RichText/EncodeHTML.cpp (working copy)
363 363
		PNGEncoder png;
364 364
		png.SaveFile(AppendFileName(outdir, lname), object.ToImage(psz));
365 365
	}
366
	return html;
366
	return String(html);
367 367
}
368 368

  
369 369
String EncodeHtml(const RichText& text, Index<String>& css,
RichText/EncodeQtf.cpp (working copy)
562 562
			r.Cat(*s);
563 563
		}
564 564
	}
565
	return r;
565
	return String(r);
566 566
}
567 567

  
568 568
String DeQtfLf(const char *s) {
......
580 580
			r.Cat("-|");
581 581
		s++;
582 582
	}
583
	return r;
583
	return String(r);
584 584
}
585 585

  
586 586
RichText AsRichText(const RichObject& obj)
RichText/ParaPaint.cpp (working copy)
141 141
	RawCat(b, object.GetSerialId());
142 142
	RawCat(b, sz);
143 143
	RawCat(b, context);
144
	return b;
144
	return String(b);
145 145
}
146 146

  
147 147
Image RichObjectImageMaker::Make() const
Sql/SqlCode.cpp (working copy)
10 10
	StringBuffer b(sizeof(T) + 1);
11 11
	b[0] = code;
12 12
	memcpy(~b + 1, &value, sizeof(T));
13
	return b;
13
	return String(b);
14 14
}
15 15

  
16 16
template <class T>
......
327 327
	b.Reserve(s.GetLength() + 100);
328 328
	const char *q = s;
329 329
	SqlCompile(q, &b, dialect, NULL);
330
	return b;
330
	return String(b);
331 331
}
332 332

  
333 333
#ifndef NOAPPSQL
......
370 370
	b[0] = code;
371 371
	memcpy(~b + 1, &l, sizeof(int));
372 372
	memcpy(~b + 1 + sizeof(int), s, l);
373
	return b;
373
	return String(b);
374 374
}
375 375

  
376 376
String SqlFormat(const char *s, int l)
Sql/SqlSet.cpp (working copy)
48 48
		return text;
49 49
	StringBuffer out;
50 50
	out << SqlCode(cond, "(")() << text << SqlCode(cond, ")")();
51
	return out;
51
	return String(out);
52 52
}
53 53

  
54 54
SqlSet& SqlSet::Cat(const SqlVal& val) {
Sql/SqlVal.cpp (working copy)
77 77
		return text;
78 78
	StringBuffer out;
79 79
	out << SqlCode(cond, "(")() << text << SqlCode(cond, ")")();
80
	return out;
80
	return String(out);
81 81
}
82 82

  
83 83
void SqlS::Init(const SqlS& a, const char *o, int olen, const SqlS& b, int pr, int prb)
ide/Browser/CodeRef.cpp (working copy)
158 158
		}
159 159
		s++;
160 160
	}
161
	return r;
161
	return String(r);
162 162
}
163 163

  
164 164
static int sSplitT(int c) {
ide/Browser/File.cpp (working copy)
97 97
	StringBuffer r;
98 98
	r << "topic " << AsCString(title) << ";\r\n";
99 99
	r << AsQTF(text, CHARSET_UTF8, QTF_BODY|QTF_ALL_STYLES|QTF_CRLF);
100
	return r;
100
	return String(r);
101 101
}
102 102

  
103 103
String WriteTopicI(const char *title, const RichText& text)
......
121 121
			r << "\r\n";
122 122
	}
123 123
	r << "\r\n\r\n";
124
	return r;
124
	return String(r);
125 125
}
126 126

  
127 127
void SaveGroupInc(const String& grouppath)
ide/Core/Core.cpp (working copy)
532 532
			"int " << ident << "_length = " << b_length << ";\n\n";
533 533
		}
534 534
	}
535
	return fo;
535
	return String(fo);
536 536
}
537 537

  
538 538
void CopyFile(const String& d, const String& s, bool brc)
ide/Core/Package.cpp (working copy)
14 14
	while(IsUppValueChar(p.PeekChar()))
15 15
		v.Cat(p.GetChar());
16 16
	p.Spaces();
17
	return v;
17
	return String(v);
18 18
}
19 19

  
20 20
static bool sMatchOr(CParser& p, const Vector<String>& flag);
ide/idetool.cpp (working copy)
325 325
	r.SetCount(s.GetCount());
326 326
	for(int i = 0; i < s.GetCount(); i++)
327 327
		r[i] = IsUpper(s[i]) ? ToLower(s[i]) : ToUpper(s[i]);
328
	return r;
328
	return WString(r);
329 329
}
330 330

  
331 331
void Ide::SwapCase()
plugin/bmp/Icon.cpp (working copy)
216 216
			Poke32le(entry + OFFSETOF(BMP_ICONDIRENTRY, dwImageOffset), out_offset);
217 217
		}
218 218
	}
219
	return out;
219
	return String(out);
220 220
}
221 221

  
222 222
}