Change LLPreeditor::standouts_t to std::deque since std::vector<bool> since it's a specialization that does not necessarily behave like standard STL containers

master
Ansariel 2024-02-19 15:44:40 +01:00 committed by Andrey Lihatskiy
parent 321f283032
commit 5486d87b56
3 changed files with 3 additions and 3 deletions

View File

@ -2590,7 +2590,7 @@ void LLLineEditor::markAsPreedit(S32 position, S32 length)
mPreeditPositions[0] = position;
mPreeditPositions[1] = position + length;
mPreeditStandouts.resize(1);
mPreeditStandouts[0] = FALSE;
mPreeditStandouts[0] = false;
}
else
{

View File

@ -276,7 +276,7 @@ protected:
LLWString mPreeditWString;
LLWString mPreeditOverwrittenWString;
std::vector<S32> mPreeditPositions;
std::vector<bool> mPreeditStandouts;
LLPreeditor::standouts_t mPreeditStandouts;
protected:
LLUIColor mDefaultColor;

View File

@ -34,7 +34,7 @@ class LLPreeditor
public:
typedef std::vector<S32> segment_lengths_t;
typedef std::vector<bool> standouts_t;
typedef std::deque<bool> standouts_t;
// We don't delete against LLPreeditor, but compilers complain without this...