Pārlūkot izejas kodu

* use sametext instead of converting case

Michaël Van Canneyt 3 mēneši atpakaļ
vecāks
revīzija
637513ce94
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 2 2
      rtl/objpas/classes/writer.inc
  2. 1 1
      rtl/objpas/sysutils/fina.inc

+ 2 - 2
rtl/objpas/classes/writer.inc

@@ -1076,7 +1076,7 @@ begin
             if (AncestorObj<> ObjValue) and
              (TComponent(AncestorObj).Owner = FRootAncestor) and
              (TComponent(ObjValue).Owner = Root) and
-             (UpperCase(TComponent(AncestorObj).Name) = UpperCase(TComponent(ObjValue).Name)) then
+             (SameText(TComponent(AncestorObj).Name,TComponent(ObjValue).Name)) then
             begin
               // different components, but with the same name
               // treat it like an override
@@ -1215,7 +1215,7 @@ begin
               if (AncestorObj<> Component) and
                (TComponent(AncestorObj).Owner = FRootAncestor) and
                (Component.Owner = Root) and
-               (UpperCase(TComponent(AncestorObj).Name) = UpperCase(Component.Name)) then
+               (SameText(TComponent(AncestorObj).Name,Component.Name)) then
               begin
                 // different components, but with the same name
                 // treat it like an override

+ 1 - 1
rtl/objpas/sysutils/fina.inc

@@ -331,7 +331,7 @@ Var Source, Dest   : PathStr;
 Const OneLevelBack = '..'+DirectorySeparator;
 
 begin
-  If Uppercase(ExtractFileDrive(BaseName))<>Uppercase(ExtractFileDrive(DestName)) Then
+  If not SameText(ExtractFileDrive(BaseName),ExtractFileDrive(DestName)) Then
     begin
     Result:=DestName;
     exit;