Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Alchemy Viewer
Commits
589e8e7d
Commit
589e8e7d
authored
5 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Smol optimizations
parent
9e3ccf97
No related branches found
No related tags found
1 merge request
!12
Master
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llui/lltexteditor.cpp
+3
-3
3 additions, 3 deletions
indra/llui/lltexteditor.cpp
indra/llui/llview.cpp
+1
-1
1 addition, 1 deletion
indra/llui/llview.cpp
indra/newview/llviewertexteditor.cpp
+1
-1
1 addition, 1 deletion
indra/newview/llviewertexteditor.cpp
with
5 additions
and
5 deletions
indra/llui/lltexteditor.cpp
+
3
−
3
View file @
589e8e7d
...
@@ -1976,7 +1976,7 @@ void LLTextEditor::doDelete()
...
@@ -1976,7 +1976,7 @@ void LLTextEditor::doDelete()
{
{
S32
i
;
S32
i
;
S32
chars_to_remove
=
1
;
S32
chars_to_remove
=
1
;
LLWString
text
=
getWText
();
const
LLWString
&
text
=
getWText
();
if
(
(
text
[
mCursorPos
]
==
' '
)
&&
(
mCursorPos
+
SPACES_PER_TAB
<
getLength
())
)
if
(
(
text
[
mCursorPos
]
==
' '
)
&&
(
mCursorPos
+
SPACES_PER_TAB
<
getLength
())
)
{
{
// Try to remove a full tab's worth of spaces
// Try to remove a full tab's worth of spaces
...
@@ -2580,7 +2580,7 @@ void LLTextEditor::updateLinkSegments()
...
@@ -2580,7 +2580,7 @@ void LLTextEditor::updateLinkSegments()
{
{
if
(
!
mParseHTML
)
return
;
if
(
!
mParseHTML
)
return
;
LLWString
wtext
=
getWText
();
const
LLWString
&
wtext
=
getWText
();
// update any segments that contain a link
// update any segments that contain a link
for
(
const
auto
&
mSegment
:
mSegments
)
for
(
const
auto
&
mSegment
:
mSegments
)
...
@@ -2900,7 +2900,7 @@ BOOL LLTextEditor::getPreeditLocation(S32 query_offset, LLCoordGL *coord, LLRect
...
@@ -2900,7 +2900,7 @@ BOOL LLTextEditor::getPreeditLocation(S32 query_offset, LLCoordGL *coord, LLRect
current_line
++
;
current_line
++
;
}
}
const
LLWString
textString
(
getWText
()
)
;
const
LLWString
&
textString
=
getWText
();
const
llwchar
*
const
text
=
textString
.
c_str
();
const
llwchar
*
const
text
=
textString
.
c_str
();
const
S32
line_height
=
mFont
->
getLineHeight
();
const
S32
line_height
=
mFont
->
getLineHeight
();
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llview.cpp
+
1
−
1
View file @
589e8e7d
...
@@ -378,7 +378,7 @@ void LLView::removeChild(LLView* child)
...
@@ -378,7 +378,7 @@ void LLView::removeChild(LLView* child)
llassert
(
!
child
->
mInDraw
);
llassert
(
!
child
->
mInDraw
);
mChildList
.
remove
(
child
);
mChildList
.
remove
(
child
);
for
(
auto
it
=
mChildHashMap
.
begin
()
;
it
!
=
mChildHashMap
.
end
();
++
it
)
for
(
auto
it
=
mChildHashMap
.
begin
()
,
end
=
mChildHashMap
.
end
();
it
!=
end
;
++
it
)
{
{
if
(
it
->
second
==
child
)
if
(
it
->
second
==
child
)
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewertexteditor.cpp
+
1
−
1
View file @
589e8e7d
...
@@ -1043,7 +1043,7 @@ void LLViewerTextEditor::onValueChange(S32 start, S32 end)
...
@@ -1043,7 +1043,7 @@ void LLViewerTextEditor::onValueChange(S32 start, S32 end)
void
LLViewerTextEditor
::
findEmbeddedItemSegments
(
S32
start
,
S32
end
)
void
LLViewerTextEditor
::
findEmbeddedItemSegments
(
S32
start
,
S32
end
)
{
{
LLWString
text
=
getWText
();
const
LLWString
&
text
=
getWText
();
// Start with i just after the first embedded item
// Start with i just after the first embedded item
for
(
S32
idx
=
start
;
idx
<
end
;
idx
++
)
for
(
S32
idx
=
start
;
idx
<
end
;
idx
++
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment