diff --git a/etc/scripts/format-code.bat b/etc/scripts/format-code.bat old mode 100644 new mode 100755 index 8f4f36b..bf3672b --- a/etc/scripts/format-code.bat +++ b/etc/scripts/format-code.bat @@ -9,7 +9,7 @@ title Code Formatter cd /d %~dp0 :: 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 echo. diff --git a/etc/scripts/format-code.sh b/etc/scripts/format-code.sh old mode 100644 new mode 100755 index 9bfc1b2..ad1b9aa --- a/etc/scripts/format-code.sh +++ b/etc/scripts/format-code.sh @@ -1,2 +1,2 @@ # 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 diff --git a/src/QSimpleUpdater.cpp b/src/QSimpleUpdater.cpp index cc6ae4d..b93d065 100644 --- a/src/QSimpleUpdater.cpp +++ b/src/QSimpleUpdater.cpp @@ -204,7 +204,7 @@ void QSimpleUpdater::setNotifyOnFinish (const QString& url, //============================================================================== void QSimpleUpdater::setDownloaderEnabled (const QString& url, - const bool& enabled) { + const bool& enabled) { getUpdater (url)->setDownloaderEnabled (enabled); }