Meta::toFile now returns, as it should
This commit is contained in:
		
							parent
							
								
									c12e7897cf
								
							
						
					
					
						commit
						108499bc58
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -1988,7 +1988,9 @@ namespace DTSC { | ||||||
|   bool Meta::toFile(const std::string & fileName){ |   bool Meta::toFile(const std::string & fileName){ | ||||||
|     std::ofstream oFile(fileName.c_str()); |     std::ofstream oFile(fileName.c_str()); | ||||||
|     oFile << toJSON().toNetPacked(); |     oFile << toJSON().toNetPacked(); | ||||||
|  |     if (!oFile.good()){return false;} | ||||||
|     oFile.close(); |     oFile.close(); | ||||||
|  |     return true; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   ///\brief Converts a meta object to a human readable string
 |   ///\brief Converts a meta object to a human readable string
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma