Explorar o código

Clang imposed changes that should be noop and have no effect on classic compiler (mostly for release build) (4th after cea3db7f)

Source commit: 6071393e7ecab31c096ca36631fd59b29469c08c
Martin Prikryl hai 2 meses
pai
achega
4c615a1ff1

+ 1 - 5
source/components/ThemePageControl.cpp

@@ -12,6 +12,7 @@
 #include <StrUtils.hpp>
 #include <StrUtils.hpp>
 #include <CustomWinConfiguration.h>
 #include <CustomWinConfiguration.h>
 #include "ThemePageControl.h"
 #include "ThemePageControl.h"
+#include <algorithm>
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 #pragma package(smart_init)
 #pragma package(smart_init)
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
@@ -20,11 +21,6 @@
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 #define IDS_UTIL_TAB            L"TAB"
 #define IDS_UTIL_TAB            L"TAB"
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
-static inline void ValidCtrCheck(TThemePageControl *)
-{
-  new TThemePageControl(NULL);
-}
-//---------------------------------------------------------------------------
 namespace Themepagecontrol
 namespace Themepagecontrol
 {
 {
   void __fastcall PACKAGE Register()
   void __fastcall PACKAGE Register()

+ 0 - 5
source/components/UnixDirView.cpp

@@ -28,11 +28,6 @@
 #define ASSERT_VALID_ITEM
 #define ASSERT_VALID_ITEM
 #endif
 #endif
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
-static inline void ValidCtrCheck(TUnixDirView *)
-{
-  new TUnixDirView(NULL);
-}
-//---------------------------------------------------------------------------
 namespace Unixdirview
 namespace Unixdirview
 {
 {
   void __fastcall PACKAGE Register()
   void __fastcall PACKAGE Register()

+ 0 - 5
source/components/UnixDriveView.cpp

@@ -18,11 +18,6 @@
 
 
 #pragma package(smart_init)
 #pragma package(smart_init)
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
-static inline void ValidCtrCheck(TUnixDriveView *)
-{
-  new TUnixDriveView(NULL);
-}
-//---------------------------------------------------------------------------
 namespace Unixdriveview
 namespace Unixdriveview
 {
 {
   void __fastcall PACKAGE Register()
   void __fastcall PACKAGE Register()

+ 1 - 0
source/core/Queue.cpp

@@ -7,6 +7,7 @@
 #include "Queue.h"
 #include "Queue.h"
 #include "Exceptions.h"
 #include "Exceptions.h"
 #include <System.DateUtils.hpp>
 #include <System.DateUtils.hpp>
+#include <algorithm>
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 #pragma package(smart_init)
 #pragma package(smart_init)
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------

+ 5 - 0
source/core/Terminal.cpp

@@ -201,6 +201,7 @@ class TTunnelUI : public TSessionUI
 {
 {
 public:
 public:
   __fastcall TTunnelUI(TTerminal * Terminal);
   __fastcall TTunnelUI(TTerminal * Terminal);
+  virtual __fastcall ~TTunnelUI();
   virtual void __fastcall Information(const UnicodeString & Str);
   virtual void __fastcall Information(const UnicodeString & Str);
   virtual unsigned int __fastcall QueryUser(const UnicodeString Query,
   virtual unsigned int __fastcall QueryUser(const UnicodeString Query,
     TStrings * MoreMessages, unsigned int Answers, const TQueryParams * Params,
     TStrings * MoreMessages, unsigned int Answers, const TQueryParams * Params,
@@ -228,6 +229,10 @@ __fastcall TTunnelUI::TTunnelUI(TTerminal * Terminal)
   FTerminalThread = GetCurrentThreadId();
   FTerminalThread = GetCurrentThreadId();
 }
 }
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
+__fastcall TTunnelUI::~TTunnelUI()
+{
+}
+//---------------------------------------------------------------------------
 void __fastcall TTunnelUI::Information(const UnicodeString & Str)
 void __fastcall TTunnelUI::Information(const UnicodeString & Str)
 {
 {
   if (GetCurrentThreadId() == FTerminalThread)
   if (GetCurrentThreadId() == FTerminalThread)

+ 1 - 0
source/forms/Preferences.cpp

@@ -7,6 +7,7 @@
 #include <Common.h>
 #include <Common.h>
 #include <math.h>
 #include <math.h>
 #include <limits>
 #include <limits>
+#include <algorithm>
 
 
 #include "Preferences.h"
 #include "Preferences.h"
 #include "Custom.h"
 #include "Custom.h"

+ 1 - 0
source/forms/Progress.cpp

@@ -15,6 +15,7 @@
 #include <Consts.hpp>
 #include <Consts.hpp>
 #include <HistoryComboBox.hpp>
 #include <HistoryComboBox.hpp>
 #include <windowsx.h>
 #include <windowsx.h>
+#include <algorithm>
 
 
 #include "Progress.h"
 #include "Progress.h"
 //---------------------------------------------------------------------
 //---------------------------------------------------------------------

+ 1 - 0
source/windows/WinInterface.cpp

@@ -3,6 +3,7 @@
 #pragma hdrstop
 #pragma hdrstop
 
 
 #include <shlwapi.h>
 #include <shlwapi.h>
+#include <algorithm>
 
 
 #include <Common.h>
 #include <Common.h>
 #include <Queue.h>
 #include <Queue.h>