| 503 | } |
| 504 | |
| 505 | void nullPointer_std_filebuf_open(std::filebuf &fb, const std::string &strFileName, const char* filename, std::ios_base::openmode mode) |
| 506 | { |
| 507 | // cppcheck-suppress nullPointer |
| 508 | (void)fb.open(nullptr, mode); |
| 509 | (void)fb.open(filename, mode); |
| 510 | (void)fb.open(strFileName, mode); |
| 511 | } |
| 512 | |
| 513 | void nullPointer_std_ofstream_open(std::ofstream &os, const std::string &strFileName, const char* filename, std::ios_base::openmode mode) |
| 514 | { |