Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSodaSea committed Jul 2, 2018
1 parent e174a28 commit 45e505a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/XML_DOMReader/XML_DOMReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
using namespace Cats::Corecat;
using namespace Cats::Textcat;

std::vector<char> readFile(const char* name) {
std::vector<char> readFile(const char* path) {

std::ifstream is(name, std::ios::binary);
std::ifstream is(path, std::ios::binary);
if(!is) throw IOException("Cannot read file");
is.seekg(0, std::ios::end);
std::size_t size = static_cast<std::size_t>(is.tellg());
Expand Down
4 changes: 2 additions & 2 deletions example/XML_SAXReader/XML_SAXReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ class Handler : public XMLHandlerBase {

};

std::vector<char> readFile(const char* name) {
std::vector<char> readFile(const char* path) {

std::ifstream is(name, std::ios::binary);
std::ifstream is(path, std::ios::binary);
if(!is) throw IOException("Cannot read file");
is.seekg(0, std::ios::end);
std::size_t size = static_cast<std::size_t>(is.tellg());
Expand Down

0 comments on commit 45e505a

Please sign in to comment.