mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 00:45:58 +00:00
Various beast cleanups
This commit is contained in:
@@ -30,14 +30,14 @@ struct TextDiffHelpers
|
||||
StringRegion (const String& s) noexcept
|
||||
: text (s.getCharPointer()), start (0), length (s.length()) {}
|
||||
|
||||
StringRegion (const String::CharPointerType& t, int s, int len) noexcept
|
||||
StringRegion (const String::CharPointerType t, int s, int len) noexcept
|
||||
: text (t), start (s), length (len) {}
|
||||
|
||||
String::CharPointerType text;
|
||||
int start, length;
|
||||
};
|
||||
|
||||
static void addInsertion (TextDiff& td, const String::CharPointerType& text, int index, int length)
|
||||
static void addInsertion (TextDiff& td, const String::CharPointerType text, int index, int length)
|
||||
{
|
||||
TextDiff::Change c;
|
||||
c.insertedText = String (text, (size_t) length);
|
||||
@@ -99,7 +99,7 @@ struct TextDiffHelpers
|
||||
}
|
||||
|
||||
static int findLongestCommonSubstring (String::CharPointerType a, const int lenA,
|
||||
const String::CharPointerType& b, const int lenB,
|
||||
const String::CharPointerType b, const int lenB,
|
||||
int& indexInA, int& indexInB)
|
||||
{
|
||||
if (lenA == 0 || lenB == 0)
|
||||
|
||||
Reference in New Issue
Block a user