From ec056fba9f6e70664a8f2a183d25d282f81c2f7a Mon Sep 17 00:00:00 2001 From: maxim Date: Tue, 22 May 2018 22:32:45 +0000 Subject: [PATCH] LazUtils: Translations unit: do not try to initialize FHelperList on every call of TPOFile.UpdateItem. FHelperList is only used in TPOFile.SaveToStrings and initialized there. git-svn-id: trunk@58005 - --- components/lazutils/translations.pas | 3 --- 1 file changed, 3 deletions(-) diff --git a/components/lazutils/translations.pas b/components/lazutils/translations.pas index ee115f720f..430fe5e416 100644 --- a/components/lazutils/translations.pas +++ b/components/lazutils/translations.pas @@ -1505,9 +1505,6 @@ procedure TPOFile.UpdateItem(const Identifier: string; Original: string); var Item: TPOFileItem; begin - if FHelperList=nil then - FHelperList := TStringList.Create; - // try to find PO entry by identifier Item:=TPOFileItem(FIdentifierLowToItem[lowercase(Identifier)]); if Item<>nil then begin