From eed6f6fc663c3577dbf18d53b9c5bc7a3eb1af23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 28 Nov 2017 19:18:22 -0800 Subject: [PATCH] Cleanup. --- include/bx/filepath.h | 8 ++++---- tests/settings_test.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/bx/filepath.h b/include/bx/filepath.h index 11fb4b5..761f50c 100644 --- a/include/bx/filepath.h +++ b/include/bx/filepath.h @@ -92,16 +92,16 @@ namespace bx }; /// Creates a directory named `_filePath`. - bool make(const FilePath& _filePath, Error* _err); + bool make(const FilePath& _filePath, Error* _err = NULL); /// Creates a directory named `_filePath` along with all necessary parents. - bool makeAll(const FilePath& _filePath, Error* _err); + bool makeAll(const FilePath& _filePath, Error* _err = NULL); /// Removes file or directory. - bool remove(const FilePath& _filePath, Error* _err); + bool remove(const FilePath& _filePath, Error* _err = NULL); /// Removes file or directory recursivelly. - bool removeAll(const FilePath& _filePath, Error* _err); + bool removeAll(const FilePath& _filePath, Error* _err = NULL); } // namespace bx diff --git a/tests/settings_test.cpp b/tests/settings_test.cpp index f400644..9f94cfd 100644 --- a/tests/settings_test.cpp +++ b/tests/settings_test.cpp @@ -40,7 +40,7 @@ TEST_CASE("Settings", "") if (bx::open(&reader, filePath) ) { bx::read(&reader, settings); - bx::close(&writer); + bx::close(&reader); } REQUIRE(NULL == settings.get("meh") );