Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a0c4102b
Commit
a0c4102b
authored
7 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/OptionDef: add "constexpr"
parent
94200668
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
OptionDef.hxx
src/util/OptionDef.hxx
+3
-3
No files found.
src/util/OptionDef.hxx
View file @
a0c4102b
...
@@ -40,9 +40,9 @@ public:
...
@@ -40,9 +40,9 @@ public:
short_option
(
_short_option
),
short_option
(
_short_option
),
desc
(
_desc
)
{
}
desc
(
_desc
)
{
}
bool
HasLongOption
()
const
{
return
long_option
!=
nullptr
;
}
constexpr
bool
HasLongOption
()
const
{
return
long_option
!=
nullptr
;
}
bool
HasShortOption
()
const
{
return
short_option
!=
0
;
}
constexpr
bool
HasShortOption
()
const
{
return
short_option
!=
0
;
}
bool
HasDescription
()
const
{
return
desc
!=
nullptr
;
}
constexpr
bool
HasDescription
()
const
{
return
desc
!=
nullptr
;
}
const
char
*
GetLongOption
()
const
{
const
char
*
GetLongOption
()
const
{
assert
(
HasLongOption
());
assert
(
HasLongOption
());
...
...
This diff is collapsed.
Click to expand it.
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