Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
19dd59f3
Commit
19dd59f3
authored
Oct 02, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: remove redundant "virtual" keywords
"override" implies "virtual".
parent
37501d9b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
30 deletions
+26
-30
CompositeStorage.cxx
src/storage/CompositeStorage.cxx
+2
-3
CompositeStorage.hxx
src/storage/CompositeStorage.hxx
+5
-5
LocalStorage.cxx
src/storage/plugins/LocalStorage.cxx
+7
-8
NfsStorage.cxx
src/storage/plugins/NfsStorage.cxx
+6
-7
SmbclientStorage.cxx
src/storage/plugins/SmbclientStorage.cxx
+6
-7
No files found.
src/storage/CompositeStorage.cxx
View file @
19dd59f3
...
...
@@ -55,9 +55,8 @@ public:
}
/* virtual methods from class StorageDirectoryReader */
virtual
const
char
*
Read
()
override
;
virtual
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
const
char
*
Read
()
override
;
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
};
const
char
*
...
...
src/storage/CompositeStorage.hxx
View file @
19dd59f3
...
...
@@ -122,17 +122,17 @@ public:
bool
Unmount
(
const
char
*
uri
);
/* virtual methods from class Storage */
virtual
bool
GetInfo
(
const
char
*
uri
,
bool
follow
,
FileInfo
&
info
,
bool
GetInfo
(
const
char
*
uri
,
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
virtual
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri
,
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri
,
Error
&
error
)
override
;
virtual
std
::
string
MapUTF8
(
const
char
*
uri
)
const
override
;
std
::
string
MapUTF8
(
const
char
*
uri
)
const
override
;
virtual
AllocatedPath
MapFS
(
const
char
*
uri
)
const
override
;
AllocatedPath
MapFS
(
const
char
*
uri
)
const
override
;
virtual
const
char
*
MapToRelativeUTF8
(
const
char
*
uri
)
const
override
;
const
char
*
MapToRelativeUTF8
(
const
char
*
uri
)
const
override
;
private
:
template
<
typename
T
>
...
...
src/storage/plugins/LocalStorage.cxx
View file @
19dd59f3
...
...
@@ -45,9 +45,8 @@ public:
}
/* virtual methods from class StorageDirectoryReader */
virtual
const
char
*
Read
()
override
;
virtual
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
const
char
*
Read
()
override
;
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
};
class
LocalStorage
final
:
public
Storage
{
...
...
@@ -62,17 +61,17 @@ public:
}
/* virtual methods from class Storage */
virtual
bool
GetInfo
(
const
char
*
uri_utf8
,
bool
follow
,
FileInfo
&
info
,
bool
GetInfo
(
const
char
*
uri_utf8
,
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
virtual
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri_utf8
,
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri_utf8
,
Error
&
error
)
override
;
virtual
std
::
string
MapUTF8
(
const
char
*
uri_utf8
)
const
override
;
std
::
string
MapUTF8
(
const
char
*
uri_utf8
)
const
override
;
virtual
AllocatedPath
MapFS
(
const
char
*
uri_utf8
)
const
override
;
AllocatedPath
MapFS
(
const
char
*
uri_utf8
)
const
override
;
virtual
const
char
*
MapToRelativeUTF8
(
const
char
*
uri_utf8
)
const
override
;
const
char
*
MapToRelativeUTF8
(
const
char
*
uri_utf8
)
const
override
;
private
:
AllocatedPath
MapFS
(
const
char
*
uri_utf8
,
Error
&
error
)
const
;
...
...
src/storage/plugins/NfsStorage.cxx
View file @
19dd59f3
...
...
@@ -56,9 +56,8 @@ public:
virtual
~
NfsDirectoryReader
();
/* virtual methods from class StorageDirectoryReader */
virtual
const
char
*
Read
()
override
;
virtual
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
const
char
*
Read
()
override
;
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
};
class
NfsStorage
final
:
public
Storage
{
...
...
@@ -75,15 +74,15 @@ public:
}
/* virtual methods from class Storage */
virtual
bool
GetInfo
(
const
char
*
uri_utf8
,
bool
follow
,
FileInfo
&
info
,
bool
GetInfo
(
const
char
*
uri_utf8
,
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
virtual
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri_utf8
,
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri_utf8
,
Error
&
error
)
override
;
virtual
std
::
string
MapUTF8
(
const
char
*
uri_utf8
)
const
override
;
std
::
string
MapUTF8
(
const
char
*
uri_utf8
)
const
override
;
virtual
const
char
*
MapToRelativeUTF8
(
const
char
*
uri_utf8
)
const
override
;
const
char
*
MapToRelativeUTF8
(
const
char
*
uri_utf8
)
const
override
;
};
static
std
::
string
...
...
src/storage/plugins/SmbclientStorage.cxx
View file @
19dd59f3
...
...
@@ -43,9 +43,8 @@ public:
virtual
~
SmbclientDirectoryReader
();
/* virtual methods from class StorageDirectoryReader */
virtual
const
char
*
Read
()
override
;
virtual
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
const
char
*
Read
()
override
;
bool
GetInfo
(
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
};
class
SmbclientStorage
final
:
public
Storage
{
...
...
@@ -64,15 +63,15 @@ public:
}
/* virtual methods from class Storage */
virtual
bool
GetInfo
(
const
char
*
uri_utf8
,
bool
follow
,
FileInfo
&
info
,
bool
GetInfo
(
const
char
*
uri_utf8
,
bool
follow
,
FileInfo
&
info
,
Error
&
error
)
override
;
virtual
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri_utf8
,
StorageDirectoryReader
*
OpenDirectory
(
const
char
*
uri_utf8
,
Error
&
error
)
override
;
virtual
std
::
string
MapUTF8
(
const
char
*
uri_utf8
)
const
override
;
std
::
string
MapUTF8
(
const
char
*
uri_utf8
)
const
override
;
virtual
const
char
*
MapToRelativeUTF8
(
const
char
*
uri_utf8
)
const
override
;
const
char
*
MapToRelativeUTF8
(
const
char
*
uri_utf8
)
const
override
;
};
std
::
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment