@@ -30,14 +30,14 @@ struct TextDiffHelpers
30
30
StringRegion (const String& s) noexcept
31
31
: text (s.getCharPointer()), start (0 ), length (s.length()) {}
32
32
33
- StringRegion (const String::CharPointerType& t, int s, int len) noexcept
33
+ StringRegion (const String::CharPointerType t, int s, int len) noexcept
34
34
: text (t), start (s), length (len) {}
35
35
36
36
String::CharPointerType text;
37
37
int start, length;
38
38
};
39
39
40
- static void addInsertion (TextDiff& td, const String::CharPointerType& text, int index, int length)
40
+ static void addInsertion (TextDiff& td, const String::CharPointerType text, int index, int length)
41
41
{
42
42
TextDiff::Change c;
43
43
c.insertedText = String (text, (size_t ) length);
@@ -99,7 +99,7 @@ struct TextDiffHelpers
99
99
}
100
100
101
101
static int findLongestCommonSubstring (String::CharPointerType a, const int lenA,
102
- const String::CharPointerType& b, const int lenB,
102
+ const String::CharPointerType b, const int lenB,
103
103
int & indexInA, int & indexInB)
104
104
{
105
105
if (lenA == 0 || lenB == 0 )
0 commit comments