Mercurial > hg > forks > UniversalIndentGUI
changeset 575:14bfd80e3e5a
Only renamed one function.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@819 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Fri, 10 Oct 2008 18:43:36 +0000 |
parents | cb42ea0360d7 |
children | 57a752021364 |
files | src/indenthandler.cpp src/indenthandler.h |
diffstat | 2 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/indenthandler.cpp Fri Oct 10 17:24:36 2008 +0000 +++ b/src/indenthandler.cpp Fri Oct 10 18:43:36 2008 +0000 @@ -165,7 +165,7 @@ // Generate the parameter string that will be saved to the indenters config file. QString parameterString = getParameterString(); if ( !indenterFileName.isEmpty() ) { - writeConfigFile( settingsDirctoryStr + "/" + indenterFileName + ".cfg", parameterString ); + saveConfigFile( settingsDirctoryStr + "/" + indenterFileName + ".cfg", parameterString ); } delete errorMessageDialog; @@ -252,7 +252,7 @@ QString parameterString = getParameterString(); if ( !configFilename.isEmpty() ) { - writeConfigFile( indenterDirctoryStr + "/" + configFilename, parameterString ); + saveConfigFile( indenterDirctoryStr + "/" + configFilename, parameterString ); } parameterInputFile = " " + inputFileParameter + "\"" + shellParameterPlaceholder + "\""; @@ -391,7 +391,7 @@ QString parameterString = getParameterString(); if ( !configFilename.isEmpty() ) { - writeConfigFile( tempDirctoryStr + "/" + configFilename, parameterString ); + saveConfigFile( tempDirctoryStr + "/" + configFilename, parameterString ); } // Only add a dot to file extension if the string is not empty @@ -578,8 +578,7 @@ /*! \brief Write settings for the indenter to a config file. */ -//TODO: rename to saveConfigFile -void IndentHandler::writeConfigFile(QString filePathName, QString paramString) { +void IndentHandler::saveConfigFile(QString filePathName, QString paramString) { QFile::remove( filePathName ); QFile cfgFile( filePathName ); @@ -1102,7 +1101,7 @@ // Generate the parameter string that will be saved to the indenters config file. QString parameterString = getParameterString(); if ( !indenterFileName.isEmpty() ) { - writeConfigFile( settingsDirctoryStr + "/" + indenterFileName + ".cfg", parameterString ); + saveConfigFile( settingsDirctoryStr + "/" + indenterFileName + ".cfg", parameterString ); } // Take care if the selected indenterID is smaller or greater than the number of existing indenters
--- a/src/indenthandler.h Fri Oct 10 17:24:36 2008 +0000 +++ b/src/indenthandler.h Fri Oct 10 18:43:36 2008 +0000 @@ -98,7 +98,7 @@ private: QString callExecutableIndenter(QString sourceCode, QString inputFileExtension); QString callJavaScriptIndenter(QString sourceCode); - void writeConfigFile(QString filePathName, QString parameterString); + void saveConfigFile(QString filePathName, QString parameterString); void readIndentIniFile(QString iniFilePath); bool createIndenterCallString(); void initIndenterMenu();