Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
JennaHuntsman
XDG Integration
Commits
c805d879
Commit
c805d879
authored
2 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
More needless stream allocations
parent
127f1e3a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llxml/llcontrol.cpp
+4
-1
4 additions, 1 deletion
indra/llxml/llcontrol.cpp
indra/newview/lllocationhistory.cpp
+4
-1
4 additions, 1 deletion
indra/newview/lllocationhistory.cpp
with
8 additions
and
2 deletions
indra/llxml/llcontrol.cpp
+
4
−
1
View file @
c805d879
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
#include
"lltimer.h"
#include
"lltimer.h"
#include
"lldir.h"
#include
"lldir.h"
#include
<boost/iostreams/stream.hpp>
#if LL_RELEASE_WITH_DEBUG_INFO || LL_DEBUG
#if LL_RELEASE_WITH_DEBUG_INFO || LL_DEBUG
#define CONTROL_ERRS LL_ERRS("ControlErrors")
#define CONTROL_ERRS LL_ERRS("ControlErrors")
#else
#else
...
@@ -203,7 +205,8 @@ LLSD LLControlVariable::getComparableValue(const LLSD& value)
...
@@ -203,7 +205,8 @@ LLSD LLControlVariable::getComparableValue(const LLSD& value)
{
{
LLPointer
<
LLSDNotationParser
>
parser
=
new
LLSDNotationParser
;
LLPointer
<
LLSDNotationParser
>
parser
=
new
LLSDNotationParser
;
LLSD
result
;
LLSD
result
;
std
::
stringstream
value_stream
(
value
.
asString
());
const
auto
&
llsd_str
=
value
.
asStringRef
();
boost
::
iostreams
::
stream
<
boost
::
iostreams
::
array_source
>
value_stream
(
llsd_str
.
data
(),
llsd_str
.
size
());
if
(
parser
->
parse
(
value_stream
,
result
,
LLSDSerialize
::
SIZE_UNLIMITED
)
!=
LLSDParser
::
PARSE_FAILURE
)
if
(
parser
->
parse
(
value_stream
,
result
,
LLSDSerialize
::
SIZE_UNLIMITED
)
!=
LLSDParser
::
PARSE_FAILURE
)
{
{
storable_value
=
result
;
storable_value
=
result
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/lllocationhistory.cpp
+
4
−
1
View file @
c805d879
...
@@ -34,6 +34,9 @@
...
@@ -34,6 +34,9 @@
#include
"llsd.h"
#include
"llsd.h"
#include
"llsdserialize.h"
#include
"llsdserialize.h"
#include
<boost/iostreams/device/array.hpp>
#include
<boost/iostreams/stream.hpp>
LLLocationHistory
::
LLLocationHistory
()
:
LLLocationHistory
::
LLLocationHistory
()
:
mFilename
(
"typed_locations.txt"
)
mFilename
(
"typed_locations.txt"
)
{
{
...
@@ -163,7 +166,7 @@ void LLLocationHistory::load()
...
@@ -163,7 +166,7 @@ void LLLocationHistory::load()
LLPointer
<
LLSDParser
>
parser
=
new
LLSDNotationParser
();
LLPointer
<
LLSDParser
>
parser
=
new
LLSDNotationParser
();
while
(
std
::
getline
(
file
,
line
))
{
while
(
std
::
getline
(
file
,
line
))
{
LLSD
s_item
;
LLSD
s_item
;
st
d
::
istr
ingstream
iss
(
line
);
boo
st
::
i
o
str
eams
::
stream
<
boost
::
iostreams
::
array_source
>
iss
(
line
.
data
(),
line
.
size
()
);
if
(
parser
->
parse
(
iss
,
s_item
,
line
.
length
())
==
LLSDParser
::
PARSE_FAILURE
)
if
(
parser
->
parse
(
iss
,
s_item
,
line
.
length
())
==
LLSDParser
::
PARSE_FAILURE
)
{
{
LL_INFOS
()
<<
"Parsing saved teleport history failed"
<<
LL_ENDL
;
LL_INFOS
()
<<
"Parsing saved teleport history failed"
<<
LL_ENDL
;
...
...
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