@@ -150,11 +150,11 @@ class Twine {
150
150
char character;
151
151
unsigned int decUI;
152
152
int decI;
153
- const unsigned long * decUL;
154
- const long * decL;
155
- const unsigned long long * decULL;
156
- const long long * decLL;
157
- const uint64_t * uHex;
153
+ unsigned long decUL;
154
+ long decL;
155
+ unsigned long long decULL;
156
+ long long decLL;
157
+ uint64_t uHex;
158
158
};
159
159
160
160
// / LHS - The prefix in the concatenation, which may be uninitialized for
@@ -336,22 +336,18 @@ class Twine {
336
336
explicit Twine (int Val) : LHSKind(DecIKind) { LHS.decI = Val; }
337
337
338
338
// / Construct a twine to print \p Val as an unsigned decimal integer.
339
- explicit Twine (const unsigned long &Val) : LHSKind(DecULKind) {
340
- LHS.decUL = &Val;
341
- }
339
+ explicit Twine (unsigned long Val) : LHSKind(DecULKind) { LHS.decUL = Val; }
342
340
343
341
// / Construct a twine to print \p Val as a signed decimal integer.
344
- explicit Twine (const long & Val) : LHSKind(DecLKind) { LHS.decL = & Val; }
342
+ explicit Twine (long Val) : LHSKind(DecLKind) { LHS.decL = Val; }
345
343
346
344
// / Construct a twine to print \p Val as an unsigned decimal integer.
347
- explicit Twine (const unsigned long long & Val) : LHSKind(DecULLKind) {
348
- LHS.decULL = & Val;
345
+ explicit Twine (unsigned long long Val) : LHSKind(DecULLKind) {
346
+ LHS.decULL = Val;
349
347
}
350
348
351
349
// / Construct a twine to print \p Val as a signed decimal integer.
352
- explicit Twine (const long long &Val) : LHSKind(DecLLKind) {
353
- LHS.decLL = &Val;
354
- }
350
+ explicit Twine (long long Val) : LHSKind(DecLLKind) { LHS.decLL = Val; }
355
351
356
352
// FIXME: Unfortunately, to make sure this is as efficient as possible we
357
353
// need extra binary constructors from particular types. We can't rely on
@@ -389,9 +385,9 @@ class Twine {
389
385
// / @{
390
386
391
387
// Construct a twine to print \p Val as an unsigned hexadecimal integer.
392
- static Twine utohexstr (const uint64_t & Val) {
388
+ static Twine utohexstr (uint64_t Val) {
393
389
Child LHS, RHS;
394
- LHS.uHex = & Val;
390
+ LHS.uHex = Val;
395
391
RHS.twine = nullptr ;
396
392
return Twine (LHS, UHexKind, RHS, EmptyKind);
397
393
}
0 commit comments