Format code

This commit is contained in:
Alex Spataru 2016-06-18 16:20:59 -06:00
parent 9da294b68c
commit 03ad9414dc
3 changed files with 3 additions and 3 deletions

2
etc/scripts/format-code.bat Normal file → Executable file
View File

@ -9,7 +9,7 @@ title Code Formatter
cd /d %~dp0 cd /d %~dp0
:: Style and format the source code recursively :: Style and format the source code recursively
astyle --pad-oper --pad-first-paren-out --align-pointer=type --remove-brackets --convert-tabs --max-code-length=80 --style=google --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c astyle --style=google --indent=spaces --align-pointer=type --remove-brackets --convert-tabs --close-templates --max-code-length=80 --max-instatement-indent=50 --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c
:: Notify the user that we have finished :: Notify the user that we have finished
echo. echo.

2
etc/scripts/format-code.sh Normal file → Executable file
View File

@ -1,2 +1,2 @@
# Style and format recursively # Style and format recursively
astyle --pad-oper --pad-first-paren-out --align-pointer=type --remove-brackets --convert-tabs --max-code-length=80 --style=google --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c astyle --style=google --indent=spaces --align-pointer=type --remove-brackets --convert-tabs --close-templates --max-code-length=80 --max-instatement-indent=50 --lineend=windows --suffix=none --recursive ../../*.h ../../*.cpp ../../*.c

View File

@ -204,7 +204,7 @@ void QSimpleUpdater::setNotifyOnFinish (const QString& url,
//============================================================================== //==============================================================================
void QSimpleUpdater::setDownloaderEnabled (const QString& url, void QSimpleUpdater::setDownloaderEnabled (const QString& url,
const bool& enabled) { const bool& enabled) {
getUpdater (url)->setDownloaderEnabled (enabled); getUpdater (url)->setDownloaderEnabled (enabled);
} }