ideintf: replaced AnsiCompareText

git-svn-id: trunk@47166 -
This commit is contained in:
mattias 2014-12-10 03:14:34 +00:00
parent 56a75016e0
commit 5a8fd4166f

View File

@ -17,7 +17,8 @@ unit IDEWindowIntf;
interface interface
uses uses
Math, Classes, SysUtils, LCLProc, LazConfigStorage, Forms, Controls, LCLIntf; Math, Classes, SysUtils, LCLProc, LazConfigStorage, LazUTF8, Forms, Controls,
LCLIntf;
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// layout settings of modal forms (dialogs) in the IDE // layout settings of modal forms (dialogs) in the IDE
@ -469,14 +470,14 @@ implementation
function StrToIDEWindowPlacement(const s: string): TIDEWindowPlacement; function StrToIDEWindowPlacement(const s: string): TIDEWindowPlacement;
begin begin
for Result:=Low(TIDEWindowPlacement) to High(TIDEWindowPlacement) do for Result:=Low(TIDEWindowPlacement) to High(TIDEWindowPlacement) do
if AnsiCompareText(s,IDEWindowPlacementNames[Result])=0 then exit; if UTF8CompareText(s,IDEWindowPlacementNames[Result])=0 then exit;
Result:=iwpDefault; Result:=iwpDefault;
end; end;
function StrToIDEWindowState(const s: string): TIDEWindowState; function StrToIDEWindowState(const s: string): TIDEWindowState;
begin begin
for Result:=Low(TIDEWindowState) to High(TIDEWindowState) do for Result:=Low(TIDEWindowState) to High(TIDEWindowState) do
if AnsiCompareText(s,IDEWindowStateNames[Result])=0 then exit; if UTF8CompareText(s,IDEWindowStateNames[Result])=0 then exit;
Result:=iwsNormal; Result:=iwsNormal;
end; end;