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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
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 Viewer
Alchemy Viewer
Commits
dc97c6d3
Commit
dc97c6d3
authored
2 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Small opts to grid finding
parent
8a0ec027
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llviewernetwork.cpp
+6
-8
6 additions, 8 deletions
indra/newview/llviewernetwork.cpp
indra/newview/llviewernetwork.h
+1
-1
1 addition, 1 deletion
indra/newview/llviewernetwork.h
with
7 additions
and
9 deletions
indra/newview/llviewernetwork.cpp
+
6
−
8
View file @
dc97c6d3
...
...
@@ -37,6 +37,8 @@
#include
"lltrans.h"
#include
"llxmlnode.h"
#include
"absl/strings/match.h"
/// key used to store the grid, and the name attribute in the grid data
const
std
::
string
GRID_VALUE
=
"keyname"
;
/// the value displayed in the grid selector menu, and other human-oriented text
...
...
@@ -732,8 +734,7 @@ std::string LLGridManager::getGrid(const std::string& grid) const
{
if
(
grid_pair
.
second
.
has
(
GRID_ID_VALUE
))
{
if
(
0
==
(
LLStringUtil
::
compareInsensitive
(
grid
,
grid_pair
.
second
[
GRID_ID_VALUE
].
asString
())))
if
(
absl
::
EqualsIgnoreCase
(
grid
,
grid_pair
.
second
[
GRID_ID_VALUE
].
asStringRef
()))
{
// found a matching label, return this name
grid_name
=
grid_pair
.
first
;
...
...
@@ -742,8 +743,7 @@ std::string LLGridManager::getGrid(const std::string& grid) const
}
if
(
grid_pair
.
second
.
has
(
GRID_GATEKEEPER
))
{
std
::
string
gatekeeper
=
grid_pair
.
second
[
GRID_GATEKEEPER
].
asString
();
if
(
0
==
(
strncasecmp
(
grid
.
c_str
(),
gatekeeper
.
c_str
(),
gatekeeper
.
size
())))
if
(
absl
::
StartsWithIgnoreCase
(
grid
,
grid_pair
.
second
[
GRID_GATEKEEPER
].
asStringRef
()))
{
// found a matching label, return this name
grid_name
=
grid_pair
.
first
;
...
...
@@ -769,8 +769,7 @@ std::string LLGridManager::getGridByProbing(const std::string& grid) const
{
if
(
grid_pair
.
second
.
has
(
GRID_ID_VALUE
))
{
if
(
0
==
(
LLStringUtil
::
compareInsensitive
(
grid
,
grid_pair
.
second
[
GRID_ID_VALUE
].
asString
())))
if
(
absl
::
EqualsIgnoreCase
(
grid
,
grid_pair
.
second
[
GRID_ID_VALUE
].
asStringRef
()))
{
// found a matching label, return this name
return
grid_pair
.
first
;
...
...
@@ -779,8 +778,7 @@ std::string LLGridManager::getGridByProbing(const std::string& grid) const
}
if
(
grid_pair
.
second
.
has
(
GRID_GATEKEEPER
))
{
std
::
string
gatekeeper
=
grid_pair
.
second
[
GRID_GATEKEEPER
].
asString
();
if
(
0
==
(
strncasecmp
(
grid
.
c_str
(),
gatekeeper
.
c_str
(),
gatekeeper
.
size
())))
if
(
absl
::
StartsWithIgnoreCase
(
grid
,
grid_pair
.
second
[
GRID_GATEKEEPER
].
asStringRef
()))
{
// found a matching label, return this name
return
grid_pair
.
first
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewernetwork.h
+
1
−
1
View file @
dc97c6d3
...
...
@@ -228,7 +228,7 @@ class LLGridManager final : public LLSingleton<LLGridManager>
void
setGridChoice
(
const
std
::
string
&
grid
,
const
bool
only_select
=
true
,
const
bool
for_login
=
false
);
/// Returns the name of the currently selected grid
std
::
string
getGrid
()
const
{
return
mGrid
;
}
const
std
::
string
&
getGrid
()
const
{
return
mGrid
;
}
//@}
...
...
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