Browse Source

Replacing warning number with warning abbreviation + Removing unused code

Source commit: e3b036fd99d4a6278273bec7863aaf9473bca2e7
Martin Prikryl 2 years ago
parent
commit
e87a1174e3
2 changed files with 2 additions and 6 deletions
  1. 2 2
      source/forms/Authenticate.cpp
  2. 0 4
      source/windows/WinInterface.cpp

+ 2 - 2
source/forms/Authenticate.cpp

@@ -684,9 +684,9 @@ bool TAuthenticateForm::ExtractUrl(const UnicodeString & Text, UnicodeString & U
     P = 1;
     while (P <= Url.Length())
     {
-      #pragma warn -8111
+      #pragma warn -dpr
       if (TCharacter::IsWhiteSpace(Url[P]))
-      #pragma warn .8111
+      #pragma warn .dpr
       {
         Url.SetLength(P - 1);
       }

+ 0 - 4
source/windows/WinInterface.cpp

@@ -1621,10 +1621,6 @@ void __fastcall WinInitialize()
   OnApiPath = ApiPath;
   MainThread = GetCurrentThreadId();
   Application->OnGetMainFormHandle = MakeMethod<TGetHandleEvent>(NULL, AppGetMainFormHandle);
-
-#pragma warn -8111
-#pragma warn .8111
-
 }
 //---------------------------------------------------------------------------
 void __fastcall WinFinalize()