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
cff1c7df
Commit
cff1c7df
authored
Jan 28, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Чистка кода от лишних ".c_str()" (использовались там где можно string).
parent
623d49f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
RRDServer.cc
extensions/RRDServer/RRDServer.cc
+4
-2
ObjectRepository.cc
src/ObjectRepository/ObjectRepository.cc
+2
-2
No files found.
extensions/RRDServer/RRDServer.cc
View file @
cff1c7df
...
...
@@ -321,7 +321,8 @@ void RRDServer::timerInfo( const UniSetTypes::TimerMessage* tm )
myinfo
<<
myname
<<
"(update): '"
<<
it
.
filename
<<
"' "
<<
v
.
str
()
<<
endl
;
rrd_clear_error
();
const
char
*
argv
=
v
.
str
().
c_str
();
const
char
*
argv
=
uni_strdup
(
v
.
str
().
c_str
());
if
(
rrd_update_r
(
it
.
filename
.
c_str
(),
NULL
,
1
,
&
argv
)
<
0
)
{
...
...
@@ -329,7 +330,8 @@ void RRDServer::timerInfo( const UniSetTypes::TimerMessage* tm )
err
<<
myname
<<
"(update): Can`t update RRD ('"
<<
it
.
filename
<<
"'): err: "
<<
string
(
rrd_get_error
());
mycrit
<<
err
.
str
()
<<
endl
;
}
delete
argv
;
break
;
}
}
...
...
src/ObjectRepository/ObjectRepository.cc
View file @
cff1c7df
...
...
@@ -231,7 +231,7 @@ void ObjectRepository::unregistration(const string& name, const string& section)
if
(
err
.
str
().
empty
())
err
<<
"ObjectRepository(unregistrartion): не смог удалить "
<<
name
;
throw
ORepFailed
(
err
.
str
()
.
c_str
()
);
throw
ORepFailed
(
err
.
str
());
}
// --------------------------------------------------------------------------
/*!
...
...
@@ -292,7 +292,7 @@ ObjectPtr ObjectRepository::resolve( const string& name, const string& NSName )
if
(
err
.
str
().
empty
()
)
err
<<
"ObjectRepository(resolve): unknown error for '"
<<
name
<<
"'"
;
throw
ORepFailed
(
err
.
str
()
.
c_str
()
);
throw
ORepFailed
(
err
.
str
());
}
// --------------------------------------------------------------------------
...
...
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