Skip to content

Commit 64ce690

Browse files
committed
fix: correct pure virtual function syntax and char comparison in Autorun
1 parent 7a0c50c commit 64ce690

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Core/Tools/Autorun/WSYS_FileSystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class FileSystem
7474
public:
7575

7676
virtual ~FileSystem() {};
77-
virtual File* open( const Char *filename, Int access = 0 ) = nullptr ; ///< opens a File interface to the specified file
77+
virtual File* open( const Char *filename, Int access = 0 ) = 0 ; ///< opens a File interface to the specified file
7878

7979

8080
};

Core/Tools/Autorun/WSYS_file.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ class File
111111
virtual Bool open( const Char *filename, Int access = 0 ); ///< Open a file for access
112112
virtual void close( void ); ///< Close the file !!! File object no longer valid after this call !!!
113113

114-
virtual Int read( void *buffer, Int bytes ) = nullptr ; /**< Read the specified number of bytes from the file in to the
114+
virtual Int read( void *buffer, Int bytes ) = 0 ; /**< Read the specified number of bytes from the file in to the
115115
* memory pointed at by buffer. Returns the number of bytes read.
116116
* Returns -1 if an error occured.
117117
*/
118-
virtual Int write( void *buffer, Int bytes ) = nullptr ; /**< Write the specified number of bytes from the
118+
virtual Int write( void *buffer, Int bytes ) = 0 ; /**< Write the specified number of bytes from the
119119
* memory pointed at by buffer to the file. Returns the number of bytes written.
120120
* Returns -1 if an error occured.
121121
*/
122-
virtual Int seek( Int bytes, seekMode mode = CURRENT ) = nullptr; /**< Sets the file position of the next read/write operation. Returns the new file
122+
virtual Int seek( Int bytes, seekMode mode = CURRENT ) = 0; /**< Sets the file position of the next read/write operation. Returns the new file
123123
* position as the number of bytes from the start of the file.
124124
* Returns -1 if an error occured.
125125
*

Core/Tools/Autorun/autorun.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,9 +1313,9 @@ BOOL MainWindow::Is_Product_Registered( void )
13131313
{
13141314
char *sp;
13151315

1316-
strcpy( szUninstallPath, aName );
1317-
sp = strchr(szUninstallPath,'/');
1318-
if(*sp != nullptr)
1316+
strcpy( szUninstallPath, aName );
1317+
sp = strchr(szUninstallPath,'/');
1318+
if(sp != nullptr && *sp != '\0')
13191319
{
13201320
strcpy( szUninstallCommandLine, sp );
13211321
strcpy( szUninstallPath, aName );

0 commit comments

Comments
 (0)