@@ -150,11 +150,11 @@ class Twine {
150150 char character;
151151 unsigned int decUI;
152152 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;
158158 };
159159
160160 // / LHS - The prefix in the concatenation, which may be uninitialized for
@@ -336,22 +336,18 @@ class Twine {
336336 explicit Twine (int Val) : LHSKind(DecIKind) { LHS.decI = Val; }
337337
338338 // / 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; }
342340
343341 // / 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; }
345343
346344 // / 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;
349347 }
350348
351349 // / 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; }
355351
356352 // FIXME: Unfortunately, to make sure this is as efficient as possible we
357353 // need extra binary constructors from particular types. We can't rely on
@@ -389,9 +385,9 @@ class Twine {
389385 // / @{
390386
391387 // 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) {
393389 Child LHS, RHS;
394- LHS.uHex = & Val;
390+ LHS.uHex = Val;
395391 RHS.twine = nullptr ;
396392 return Twine (LHS, UHexKind, RHS, EmptyKind);
397393 }
0 commit comments