Branimir Karadžić 8 years ago
parent
commit
eed6f6fc66
2 changed files with 5 additions and 5 deletions
  1. 4 4
      include/bx/filepath.h
  2. 1 1
      tests/settings_test.cpp

+ 4 - 4
include/bx/filepath.h

@@ -92,16 +92,16 @@ namespace bx
 	};
 	};
 
 
 	/// Creates a directory named `_filePath`.
 	/// 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.
 	/// 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.
 	/// Removes file or directory.
-	bool remove(const FilePath& _filePath, Error* _err);
+	bool remove(const FilePath& _filePath, Error* _err = NULL);
 
 
 	/// Removes file or directory recursivelly.
 	/// Removes file or directory recursivelly.
-	bool removeAll(const FilePath& _filePath, Error* _err);
+	bool removeAll(const FilePath& _filePath, Error* _err = NULL);
 
 
 } // namespace bx
 } // namespace bx
 
 

+ 1 - 1
tests/settings_test.cpp

@@ -40,7 +40,7 @@ TEST_CASE("Settings", "")
 	if (bx::open(&reader, filePath) )
 	if (bx::open(&reader, filePath) )
 	{
 	{
 		bx::read(&reader, settings);
 		bx::read(&reader, settings);
-		bx::close(&writer);
+		bx::close(&reader);
 	}
 	}
 
 
 	REQUIRE(NULL == settings.get("meh") );
 	REQUIRE(NULL == settings.get("meh") );