Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
7d1ee1d4
Commit
7d1ee1d4
authored
Feb 16, 2003
by
Brad King
Browse files
ERR: Use of stream format flags is hard to make portable. Manually implementing justification.
parent
caa074e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmDocumentation.cxx
View file @
7d1ee1d4
...
...
@@ -229,15 +229,16 @@ void cmDocumentation::PrintUsageSection(std::ostream& os,
const
cmDocumentationEntry
*
section
)
{
if
(
!
section
)
{
return
;
}
long
flags
=
static_cast
<
long
>
(
os
.
flags
());
os
.
setf
(
flags
|
std
::
ios
::
left
);
for
(
const
cmDocumentationEntry
*
op
=
section
;
op
->
brief
;
++
op
)
{
if
(
op
->
name
)
{
os
<<
" "
;
os
.
width
(
25
);
os
<<
op
->
name
<<
"= "
<<
op
->
brief
<<
"
\n
"
;
os
<<
" "
<<
op
->
name
;
for
(
int
i
=
static_cast
<
int
>
(
strlen
(
op
->
name
));
i
<
25
;
++
i
)
{
os
<<
" "
;
}
os
<<
"= "
<<
op
->
brief
<<
"
\n
"
;
}
else
{
...
...
@@ -246,7 +247,6 @@ void cmDocumentation::PrintUsageSection(std::ostream& os,
os
<<
"
\n
"
;
}
}
os
.
setf
(
flags
);
}
//----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
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