Skip to content

Commit

Permalink
Move one constant out of const.inc into TAppSettings structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Aug 7, 2020
1 parent a34e2ab commit 154272d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/apphelpers.pas
Expand Up @@ -214,6 +214,7 @@ TAppSettings = class(TObject)
FRestoreTabsInitValue: Boolean;
FSettingsFile: String;
FSettings: Array[TAppSettingIndex] of TAppSetting;
const FPortableLockFileBase: String='portable.lock';
procedure InitSetting(Index: TAppSettingIndex; Name: String;
DefaultInt: Integer=0; DefaultBool: Boolean=False; DefaultString: String='';
Session: Boolean=False);
Expand Down Expand Up @@ -3399,7 +3400,7 @@ constructor TAppSettings.Create;
FReads := 0;
FWrites := 0;

PortableLockFile := ExtractFilePath(ParamStr(0)) + SPortableLockFile;
PortableLockFile := ExtractFilePath(ParamStr(0)) + FPortableLockFileBase;

// Use filename from command line. If not given, use file in directory of executable.
rx := TRegExpr.Create;
Expand Down
1 change: 0 additions & 1 deletion source/const.inc
Expand Up @@ -101,7 +101,6 @@ const
MsgUnhandledNetType: String = 'Unhandled connection type (%d)';
MsgDisconnect: String = 'Connection to %s closed at %s';
MsgInvalidColumn: String = 'Column #%d not available. Query returned %d columns and %d rows.';
SPortableLockFile: String = 'portable.lock';
FILEFILTER_SQLITEDB = '*.sqlite3;*.sqlite;*.db;*.s3db';
FILEEXT_SQLITEDB = 'sqlite3';

Expand Down

0 comments on commit 154272d

Please sign in to comment.