Skip to content

Commit 640a039

Browse files
authored
Merge pull request #3 from wsjcpp/dev
Dev
2 parents 5f1d071 + b74689d commit 640a039

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/wsjcpp_core.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,20 +275,20 @@ bool WSJCppCore::makeDir(const std::string &sDirname) {
275275
std::cout << "FAILED create folder " << sDirname << std::endl;
276276
return false;
277277
}
278-
std::cout << "nStatus: " << nStatus << std::endl;
278+
// std::cout << "nStatus: " << nStatus << std::endl;
279279
return true;
280280
}
281281

282282
// ---------------------------------------------------------------------
283283

284284
bool WSJCppCore::writeFile(const std::string &sFilename, const std::string &sContent) {
285285

286-
std::ofstream f(sFilename, std::ifstream::in);
286+
// std::ofstream f(sFilename, std::ifstream::in);
287+
std::ofstream f(sFilename, std::ios::out);
287288
if (!f) {
288-
std::cout << "FAILED could not create file to wtite " << sFilename << std::endl;
289+
WSJCppLog::err("WSJCppCore", "Could not create file to write '" + sFilename + "'");
289290
return false;
290291
}
291-
292292
f << sContent << std::endl;
293293
f.close();
294294
return true;

wsjcpp.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
wsjcpp: 1.0.0
2+
wsjcpp_version: v0.0.1
33
cmake_cxx_standard: 11
44
cmake_minimum_required: 3.0
55

@@ -8,7 +8,8 @@ version: 0.0.1
88
description: Basic Utils for wsjcpp
99
issues: https://github.com/wsjcpp/wsjcpp-core/issues
1010
repositories:
11-
- "https://github.com/wsjcpp/wsjcpp-core"
11+
- type: main
12+
url: "https://github.com/wsjcpp/wsjcpp-core"
1213
keywords:
1314
- c++
1415
- wsjcpp
@@ -35,4 +36,4 @@ unit-tests:
3536
files:
3637
- unit-tests/src/main.cpp
3738
- unit-tests/src/unit_tests.h
38-
- unit-tests/src/unit_tests.cpp
39+
- unit-tests/src/unit_tests.cpp

0 commit comments

Comments
 (0)