Browse Source

* string -> shortstring

Michael VAN CANNEYT 2 years ago
parent
commit
33ec5643c6
2 changed files with 4 additions and 4 deletions
  1. 3 3
      rtl/android/sysandroid.inc
  2. 1 1
      rtl/android/sysandroidh.inc

+ 3 - 3
rtl/android/sysandroid.inc

@@ -178,7 +178,7 @@ var
 
 function SystemApiLevel: shortint;
 var
-  s: string;
+  s: shortstring;
   c: integer;
 begin
   if _ApiLevel < 0 then
@@ -307,7 +307,7 @@ begin
   RedirectFile(StdErr);
 end;
 
-procedure SetDefaultSysLogTag(const Tag: string);
+procedure SetDefaultSysLogTag(const Tag: shortstring);
 var
   len: longint;
 begin
@@ -330,7 +330,7 @@ end;
 procedure InitAndroid;
 var
   i: integer;
-  s: string;
+  s: shortstring;
 begin
   if IsJniLibrary then
     begin

+ 1 - 1
rtl/android/sysandroidh.inc

@@ -26,7 +26,7 @@ const
 var DefaultSysLogPriority: longint = ANDROID_LOG_DEBUG;
 
 // Set default tag for syslog messages. Initially the tag is set to the current module name.
-procedure SetDefaultSysLogTag(const Tag: string);
+procedure SetDefaultSysLogTag(const Tag: Shortstring);
 
 // Write a message to the Android system log.
 procedure SysLogWrite(Priority: longint; Tag, Msg: PAnsiChar); overload;