Skip to content

Commit d44646f

Browse files
author
delphidabbler
committed
Renamed some URL constants
Modified affected code.
1 parent b122520 commit d44646f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Src/FmMain.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ procedure TMainForm.InitForm;
13371337

13381338
// Initialise actions
13391339
// Browse actions have to have URLs set dynamically
1340-
actGitHubHome.URL := TURL.CodeSnip;
1340+
actGitHubHome.URL := TURL.CodeSnipRepo;
13411341
actFAQs.URL := TURL.CodeSnipFAQReadMe;
13421342
actBlog.URL := TURL.CodeSnipBlog;
13431343
// Tree control actions need shortcuts adding dynamically, and state stored

Src/USaveUnitMgr.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function TSaveUnitMgr.CreateHeaderComments: IStringList;
151151
// Result used for units that contain at snippet(s) from main database
152152
Result.Add(Format(sLicense, [FormatDateTime('YYYY', Now)]));
153153
Result.Add('');
154-
Result.Add(Format(sMainDescription, [TURL.CodeSnip]));
154+
Result.Add(Format(sMainDescription, [TURL.CodeSnipRepo]));
155155
Result.Add('');
156156
Result.Add(Format(sGenerated, [RFC1123DateStamp]));
157157
Result.Add(
@@ -161,7 +161,7 @@ function TSaveUnitMgr.CreateHeaderComments: IStringList;
161161
);
162162
Result.Add('');
163163
Result.Add(
164-
Format(sAdvert, [TAppInfo.ProgramName, TURL.CodeSnip])
164+
Format(sAdvert, [TAppInfo.ProgramName, TURL.CodeSnipRepo])
165165
);
166166
end
167167
else

Src/USnippetDoc.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function TSnippetDoc.Generate(const Snippet: TSnippet): TEncodedData;
181181
RenderExtra(Snippet.Extra);
182182
if not Snippet.UserDefined then
183183
// database info written only if snippet is from main database
184-
RenderDBInfo(Format(sMainDatabaseInfo, [TURL.CodeSnip]));
184+
RenderDBInfo(Format(sMainDatabaseInfo, [TURL.CodeSnipRepo]));
185185
Result := FinaliseDoc;
186186
end;
187187

Src/UUrl.pas

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,31 @@ TURL = record
2727
DDabGitHub = 'https://github.com/delphidabbler';
2828
/// <summary>URL of the Code Snippet database's GitHub repository.
2929
/// </summary>
30-
CodeSnippetsDB = DDabGitHub + '/code-snippets';
30+
CodeSnippetsDBRepo = DDabGitHub + '/code-snippets';
3131
/// <summary>URL of the SWAG database's GitHub repository.</summary>
32-
SWAG = DDabGitHub + '/swag';
32+
SWAGRepo = DDabGitHub + '/swag';
3333
/// <summary>URL of the CodeSnip FAQ's GitHub repository.</summary>
34-
CodeSnipFAQ = DDabGitHub + '/codesnip-faq';
34+
CodeSnipFAQRepo = DDabGitHub + '/codesnip-faq';
3535
public
3636
const
3737
/// <summary>URL of CodeSnip's GitHub repository.</summary>
38-
CodeSnip = DDabGitHub + '/codesnip';
38+
CodeSnipRepo = DDabGitHub + '/codesnip';
3939

4040
/// <summary>URL used to view and report CodeSnip bugs on GitHub.
4141
/// </summary>
42-
CodeSnipBugTracker = CodeSnip + '/issues';
42+
CodeSnipBugTracker = CodeSnipRepo + '/issues';
4343

4444
/// <summary>URL of CodeSnip's FAQ web page.</summary>
4545
/// <remarks>This is the CodeSnip FAQ project on GitHub.</remarks>
46-
CodeSnipFAQReadMe = CodeSnipFAQ + '/blob/master/README.md';
46+
CodeSnipFAQReadMe = CodeSnipFAQRepo + '/blob/master/README.md';
4747

4848
/// <summary>URL of the GitHub page where DelphiDabbler Code Snippets
4949
/// database releases are hosted.</summary>
50-
CodeSnippetsDBReleases = CodeSnippetsDB + '/releases';
50+
CodeSnippetsDBReleases = CodeSnippetsDBRepo + '/releases';
5151

5252
/// <summary>URL of the GitHub page where SWAG database releases are
5353
/// hosted.</summary>
54-
SWAGReleases = SWAG + '/releases';
54+
SWAGReleases = SWAGRepo + '/releases';
5555

5656
/// <summary>URL used to make donations towards the CodeSnip project.
5757
/// </summary>

0 commit comments

Comments
 (0)