Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
62695cb7
Commit
62695cb7
authored
Aug 06, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DebugStream: use std::string for logFile
parent
b9172d42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
DebugStream.h
include/DebugStream.h
+1
-1
DebugStream.cc
src/Various/DebugStream.cc
+2
-2
No files found.
include/DebugStream.h
View file @
62695cb7
...
...
@@ -112,7 +112,7 @@ public:
}
/// Sets the debugstreams' logfile to f.
void
logFile
(
c
har
const
*
f
);
void
logFile
(
c
onst
std
::
string
f
);
inline
std
::
string
getLogFile
(){
return
fname
;
}
...
...
src/Various/DebugStream.cc
View file @
62695cb7
...
...
@@ -220,7 +220,7 @@ const DebugStream& DebugStream::operator=( const DebugStream& r )
}
//--------------------------------------------------------------------------
/// Sets the debugstreams' logfile to f.
void
DebugStream
::
logFile
(
c
har
const
*
f
)
void
DebugStream
::
logFile
(
c
onst
std
::
string
f
)
{
fname
=
f
;
if
(
internal
)
{
...
...
@@ -228,7 +228,7 @@ void DebugStream::logFile(char const * f)
}
else
{
internal
=
new
debugstream_internal
;
}
internal
->
fbuf
.
open
(
f
,
ios
::
out
|
ios
::
app
);
internal
->
fbuf
.
open
(
f
.
c_str
()
,
ios
::
out
|
ios
::
app
);
delete
rdbuf
(
new
teebuf
(
cerr
.
rdbuf
(),
&
internal
->
fbuf
));
}
...
...
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