aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-02-26 10:40:11 +0000
committernyamatongwe <unknown>2004-02-26 10:40:11 +0000
commit4adadeb7ced618cc053403f133896fe1284a34a0 (patch)
tree6ad36b525301a0cf153a19e6fa27f350233be9f1 /include
parent0651516f3f783f9aa970102d3b7ce986bddf2b29 (diff)
downloadscintilla-mirror-4adadeb7ced618cc053403f133896fe1284a34a0.tar.gz
Bruce moved the constructors from number types out of line.
Diffstat (limited to 'include')
-rw-r--r--include/SString.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/SString.h b/include/SString.h
index 7714d6d50..63930189c 100644
--- a/include/SString.h
+++ b/include/SString.h
@@ -58,18 +58,8 @@ public:
s = StringAllocate(s_ + first, last - first);
sSize = sLen = (s) ? strlen(s) : 0;
}
- SString(int i) : sizeGrowth(sizeGrowthDefault) {
- char number[32];
- sprintf(number, "%0d", i);
- s = StringAllocate(number);
- sSize = sLen = (s) ? strlen(s) : 0;
- }
- SString(double d, int precision) : sizeGrowth(sizeGrowthDefault) {
- char number[32];
- sprintf(number, "%.*f", precision, d);
- s = StringAllocate(number);
- sSize = sLen = (s) ? strlen(s) : 0;
- }
+ SString(int i);
+ SString(double d, int precision);
~SString() {
delete []s;
s = 0;