]> git.lizzy.rs Git - irrlicht.git/commitdiff
Resolve some -Wreorder warnings
authorDesour <vorunbekannt75@web.de>
Tue, 21 Feb 2023 17:30:14 +0000 (18:30 +0100)
committersfan5 <sfan5@live.de>
Wed, 22 Feb 2023 10:43:42 +0000 (11:43 +0100)
source/Irrlicht/CIrrDeviceLinux.h
source/Irrlicht/CWriteFile.cpp

index c456a1a7954fff41608313ad5abb8f9566ab017a..ea50d7c78b6a3dcfbbd9cda464b790ca181d31c0 100644 (file)
@@ -414,6 +414,9 @@ namespace irr
                bool HasNetWM;\r
                // text is utf-8\r
                mutable core::stringc Clipboard;\r
+#endif\r
+#if defined(_IRR_LINUX_X11_XINPUT2_)\r
+               int currentTouchedCount;\r
 #endif\r
                u32 Width, Height;\r
                bool WindowHasFocus;\r
@@ -454,10 +457,6 @@ namespace irr
                };\r
                core::array<JoystickInfo> ActiveJoysticks;\r
 #endif\r
-\r
-#if defined(_IRR_LINUX_X11_XINPUT2_)\r
-               int currentTouchedCount;\r
-#endif\r
        };\r
 \r
 \r
index aa07b49e7c14ba583a345ac9978843a5bc2ab656..2af6936ab9d5fc0ec44149994efff5ae2f8c8145 100644 (file)
@@ -12,7 +12,7 @@ namespace io
 \r
 \r
 CWriteFile::CWriteFile(const io::path& fileName, bool append)\r
-: FileSize(0), Filename(fileName)\r
+: Filename(fileName), FileSize(0)\r
 {\r
        #ifdef _DEBUG\r
        setDebugName("CWriteFile");\r