1
0
Fork 0

Remove false friend declarations

The single use from friended class is in public interface. Removal of
friend designators allows Clang to pinpoint few additional unused
private fields.
This commit is contained in:
Patryk Obara 2019-12-31 20:29:22 +01:00 committed by Patryk Obara
parent 3be0409d25
commit 8da42c5983
5 changed files with 13 additions and 37 deletions

View file

@ -1275,7 +1275,7 @@ void DOS_Shell::CMD_SUBST (char * args) {
if( ( ldp=dynamic_cast<localDrive*>(Drives[drive])) == 0 ) throw 0;
char newname[CROSS_LEN];
strcpy(newname, ldp->basedir);
strcpy(newname, ldp->getBasedir());
strcat(newname,fulldir);
CROSS_FILENAME(newname);
ldp->dirCache.ExpandName(newname);