Skip to content

Commit ed1884a

Browse files
committed
Use the AddFile function consistently in MSVC build scripts
We seem to be using a mix of manually adding to the 'files' hash and calling the Addfile() method. Let's just consistently use AddFile(). Reviewed-by: Dagfinn Ilmari Mannsåker Discussion: https://postgr.es/m/CAApHDvpo6g5csCTjc_0C7DMvgFPomVb0Rh-AcW5afd=Ya=LRuw@mail.gmail.com
1 parent 8709228 commit ed1884a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tools/msvc/Project.pm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sub AddFiles
5858

5959
while (my $f = shift)
6060
{
61-
$self->{files}->{ $dir . "/" . $f } = 1;
61+
$self->AddFile($dir . "/" . $f, 1);
6262
}
6363
return;
6464
}
@@ -77,14 +77,14 @@ sub ReplaceFile
7777
if ($file eq $filename)
7878
{
7979
delete $self->{files}{$file};
80-
$self->{files}{$newname} = 1;
80+
$self->AddFile($newname);
8181
return;
8282
}
8383
}
8484
elsif ($file =~ m/($re)/)
8585
{
8686
delete $self->{files}{$file};
87-
$self->{files}{"$newname/$filename"} = 1;
87+
$self->AddFile("$newname/$filename");
8888
return;
8989
}
9090
}
@@ -259,11 +259,11 @@ sub AddDir
259259
if ($f =~ /^\$\(top_builddir\)\/(.*)/)
260260
{
261261
$f = $1;
262-
$self->{files}->{$f} = 1;
262+
$self->AddFile($f);
263263
}
264264
else
265265
{
266-
$self->{files}->{"$reldir/$f"} = 1;
266+
$self->AddFile("$reldir/$f");
267267
}
268268
}
269269
$mf =~ s{OBJS[^=]*=\s*(.*)$}{}m;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy