Integer -> NativeInt
Posted: Thu May 30, 2019 6:57 pm
These are additional areas we found with our automated testing of RichView 17.6.2_8.5.1 where Integer or LongInt should be replaced with NativeInt:
RichViewActions/Source/RichViewActions.pas:RVAMakeTag(4503): Result := Integer(StrNew(PChar(S2)))
RvHtmlImporter/Source/RvHtmlImport.pas:MakeRVTag(2808): Result := Integer(StrNew(PChar(S2)))
RvXml/Source/RVXMLRoutines.pas:ReadText(335): Item.Tag := Integer(StrNew(PChar(SVal)))
RvXml/Source/RVXMLRoutines.pas:ReadUnicodeText(393): Item.Tag := Integer(StrNew(PChar(SVal)))
RvXml/Source/RVXMLRoutines.pas:ReadCheck(455): Tag := Integer(StrNew(PChar(String(T.Attr.Value))))
RvXml/Source/RVXMLRoutines.pas:ReadStandardItemProperties(486): Item.Tag := Integer(StrNew(PChar(String(Attr.Value))))
TRichView/Source/RVERVData.pas:TRVEditRVData.Do_ModifyItemIntProperties(1728): OldValue, NewValue: LongInt;
TRichView/Source/RVFMisc:RVFReadTag(747): Tag := Integer(StrNew(PChar(TagString)))
TRichView/Source/RVFuncs:RV_CopyTag(263): Result := Integer(StrNew(PChar(SourceTag)))
RichViewActions/Source/RichViewActions.pas:RVAMakeTag(4503): Result := Integer(StrNew(PChar(S2)))
RvHtmlImporter/Source/RvHtmlImport.pas:MakeRVTag(2808): Result := Integer(StrNew(PChar(S2)))
RvXml/Source/RVXMLRoutines.pas:ReadText(335): Item.Tag := Integer(StrNew(PChar(SVal)))
RvXml/Source/RVXMLRoutines.pas:ReadUnicodeText(393): Item.Tag := Integer(StrNew(PChar(SVal)))
RvXml/Source/RVXMLRoutines.pas:ReadCheck(455): Tag := Integer(StrNew(PChar(String(T.Attr.Value))))
RvXml/Source/RVXMLRoutines.pas:ReadStandardItemProperties(486): Item.Tag := Integer(StrNew(PChar(String(Attr.Value))))
TRichView/Source/RVERVData.pas:TRVEditRVData.Do_ModifyItemIntProperties(1728): OldValue, NewValue: LongInt;
TRichView/Source/RVFMisc:RVFReadTag(747): Tag := Integer(StrNew(PChar(TagString)))
TRichView/Source/RVFuncs:RV_CopyTag(263): Result := Integer(StrNew(PChar(SourceTag)))