Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
G
gflags
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
gflags
Commits
30519426
Commit
30519426
authored
Aug 01, 2016
by
dreamer.dead
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation and remove outdated assert.
parent
3c0ad4fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
gflags.cc
src/gflags.cc
+3
-4
No files found.
src/gflags.cc
View file @
30519426
...
...
@@ -274,7 +274,6 @@ FlagValue::FlagValue(FlagType* valbuf,
:
value_buffer_
(
valbuf
),
type_
(
FlagValueTraits
<
FlagType
>::
kValueType
),
owns_value_
(
transfer_ownership_of_value
)
{
assert
(
type_
<=
FV_MAX_INDEX
);
// Unknown typename
}
FlagValue
::~
FlagValue
()
{
...
...
@@ -1187,8 +1186,8 @@ string CommandLineFlagParser::ProcessFromenvLocked(const string& flagval,
}
const
string
envname
=
string
(
"FLAGS_"
)
+
string
(
flagname
);
string
envval
;
if
(
!
SafeGetEnv
(
envname
.
c_str
(),
envval
))
{
string
envval
;
if
(
!
SafeGetEnv
(
envname
.
c_str
(),
envval
))
{
if
(
errors_are_fatal
)
{
error_flags_
[
flagname
]
=
(
string
(
kError
)
+
envname
+
" not found in environment
\n
"
);
...
...
@@ -1393,7 +1392,7 @@ T GetFromEnv(const char *varname, T dflt) {
if
(
!
ifv
.
ParseFrom
(
valstr
.
c_str
()))
{
ReportError
(
DIE
,
"ERROR: error parsing env variable '%s' with value '%s'
\n
"
,
varname
,
valstr
.
c_str
());
}
}
return
OTHER_VALUE_AS
(
ifv
,
T
);
}
else
return
dflt
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment