Skip to content

Commit d8e1a6e

Browse files
committed
Renamed function generateFile() to generateOutputFile().
1 parent 6ab0917 commit d8e1a6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin2cpp/main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ struct ARGUMENTS
138138
};
139139

140140
//pre-declarations
141-
bool generateFile(const Context & c, const std::string & output_file_path, bin2cpp::IGenerator * generator);
141+
bool generateOutputFile(const Context & c, const std::string & output_file_path, bin2cpp::IGenerator * generator);
142142
APP_ERROR_CODES processInputFile(const Context & c, bin2cpp::IGenerator * generator);
143143
APP_ERROR_CODES processInputDirectory(const Context & c, bin2cpp::IGenerator * generator);
144144
APP_ERROR_CODES processManagerFiles(const Context & c);
@@ -600,11 +600,11 @@ APP_ERROR_CODES processInputFile(const Context & c, bin2cpp::IGenerator * genera
600600
}
601601

602602
//process files
603-
bool headerResult = generateFile(c, outputHeaderPath, generator);
603+
bool headerResult = generateOutputFile(c, outputHeaderPath, generator);
604604
if (!headerResult)
605605
return APP_ERROR_UNABLETOCREATEOUTPUTFILES;
606606

607-
bool cppResult = generateFile(c, outputCppPath, generator);
607+
bool cppResult = generateOutputFile(c, outputCppPath, generator);
608608
if (!cppResult)
609609
return APP_ERROR_UNABLETOCREATEOUTPUTFILES;
610610

@@ -745,7 +745,7 @@ FILE_UPDATE_MODE getFileUpdateMode(const std::string & input_file_path, const st
745745
return UPDATING;
746746
}
747747

748-
bool generateFile(const Context & c, const std::string & output_file_path, bin2cpp::IGenerator * generator)
748+
bool generateOutputFile(const Context & c, const std::string & output_file_path, bin2cpp::IGenerator * generator)
749749
{
750750
FILE_UPDATE_MODE mode = getFileUpdateMode(c.inputFilePath, output_file_path, c.overrideExistingFiles);
751751

@@ -799,11 +799,11 @@ APP_ERROR_CODES processManagerFiles(const Context & c)
799799
generator.setContext(c);
800800

801801
//process files
802-
bool headerResult = generateFile(c, outputHeaderPath, &generator);
802+
bool headerResult = generateOutputFile(c, outputHeaderPath, &generator);
803803
if (!headerResult)
804804
return APP_ERROR_UNABLETOCREATEOUTPUTFILES;
805805

806-
bool cppResult = generateFile(c, outputCppPath, &generator);
806+
bool cppResult = generateOutputFile(c, outputCppPath, &generator);
807807
if (!cppResult)
808808
return APP_ERROR_UNABLETOCREATEOUTPUTFILES;
809809

0 commit comments

Comments
 (0)