Browse Source

Improved FileWriter class

- fixed warning
Patrick-Laptop 4 years ago
parent
commit
b6533111ec
1 changed files with 2 additions and 2 deletions
  1. 2 2
      source/io/FileWriter.cpp

+ 2 - 2
source/io/FileWriter.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-17
- * Changed:         2020-08-19
+ * Changed:         2020-08-20
  *
  * */
 
@@ -28,7 +28,7 @@ bool ls_std::FileWriter::write(const ls_std::byte* _data)
 {
   std::ofstream outputStream {};
   outputStream.open(this->file.getAbsoluteFilePath());
-  bool succeeded {};
+  bool succeeded;
 
   if(outputStream << _data) {
     succeeded = true;