浏览代码

Addressed compiler warning, removed unused variables.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@87 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 9 年前
父节点
当前提交
2992ac8557
共有 2 个文件被更改,包括 7 次插入11 次删除
  1. 5
    9
      child.cpp
  2. 2
    2
      child.hpp

+ 5
- 9
child.cpp 查看文件

@@ -41,8 +41,8 @@ namespace CodeDweller {
ChildStream::ChildStream(std::vector<std::string> const &args,
size_t bufSize) :
childStreambuf(bufSize),
std::iostream(&childStreambuf),
childStreambuf(bufSize),
cmdArgs(args) {
init();
@@ -51,8 +51,8 @@ namespace CodeDweller {
}
ChildStream::ChildStream(std::string const &childpath, size_t bufSize) :
childStreambuf(bufSize),
std::iostream(&childStreambuf) {
std::iostream(&childStreambuf),
childStreambuf(bufSize) {
cmdArgs.push_back(childpath);
init();
@@ -60,8 +60,8 @@ namespace CodeDweller {
}
ChildStream::ChildStream(size_t bufSize) :
childStreambuf(bufSize),
std::iostream(&childStreambuf) {
std::iostream(&childStreambuf),
childStreambuf(bufSize) {
init();
}
@@ -1341,8 +1341,6 @@ namespace CodeDweller {
CodeDweller::PollTimer pollTimer(nominalPollTime_ms, maximumPollTime_ms);
auto sleepTime = std::chrono::milliseconds(maximumPollTime_ms);
while (!stopFlag) {
char *bufferPtr;
@@ -1440,8 +1438,6 @@ namespace CodeDweller {
CodeDweller::PollTimer pollTimer(nominalPollTime_ms, maximumPollTime_ms);
auto sleepTime = std::chrono::milliseconds(maximumPollTime_ms);
while (!stopFlag) {
char *bufferPtr;

+ 2
- 2
child.hpp 查看文件

@@ -1151,8 +1151,8 @@ namespace CodeDweller {
This method checks whether an error occurred when
communicating with the child process.

\param[out] errorDescription contains any description of the
error.
\param[out] errorDescription contains the description of any
error that occurred.

\returns true if an error occurred, false otherwise.


正在加载...
取消
保存