From 42486dde49d9a9494c1f4889bbccde1f5aecd91e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 29 Jun 2016 14:46:39 +0200 Subject: move #includes to top of file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit instead of being randomly embedded somewhere deep inside the CXX code. Found with: git grep -nP '^#include' -- *.cxx | sort -g -k 2 -t : Change-Id: I9ee432d3b665ecb6ec600bd51cc4b735a1b1127a Reviewed-on: https://gerrit.libreoffice.org/26764 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- onlineupdate/source/update/updater/updater.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'onlineupdate') diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index 145e080fcbe2..136f06064219 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -57,6 +57,14 @@ #include #include +#ifdef _WIN32 +#include "nsWindowsRestart.cxx" +#include "nsWindowsHelpers.h" +#include "uachelper.h" +#include "pathhash.h" +#endif + + // Amount of the progress bar to use in each of the 3 update stages, // should total 100.0. #define PROGRESS_PREPARE_SIZE 20.0f @@ -1793,13 +1801,6 @@ PatchIfFile::Finish(int status) //----------------------------------------------------------------------------- -#ifdef _WIN32 -#include "nsWindowsRestart.cxx" -#include "nsWindowsHelpers.h" -#include "uachelper.h" -#include "pathhash.h" -#endif - static void LaunchCallbackApp(const NS_tchar *workingDir, int argc, -- cgit