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
ecad6d93
Unverified
Commit
ecad6d93
authored
Jan 31, 2020
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[clang-tidy] pass by value where appropriate
Found with modernize-pass-by-value Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
bc6eca21
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
8 deletions
+12
-8
Bzip2ArchivePlugin.cxx
src/archive/plugins/Bzip2ArchivePlugin.cxx
+4
-3
Iso9660ArchivePlugin.cxx
src/archive/plugins/Iso9660ArchivePlugin.cxx
+4
-2
VHelper.cxx
src/db/VHelper.cxx
+3
-2
VHelper.hxx
src/db/VHelper.hxx
+1
-1
No files found.
src/archive/plugins/Bzip2ArchivePlugin.cxx
View file @
ecad6d93
...
...
@@ -32,6 +32,7 @@
#include <bzlib.h>
#include <stdexcept>
#include <utility>
class
Bzip2ArchiveFile
final
:
public
ArchiveFile
{
std
::
string
name
;
...
...
@@ -65,7 +66,7 @@ class Bzip2InputStream final : public InputStream {
char
buffer
[
5000
];
public
:
Bzip2InputStream
(
const
std
::
shared_ptr
<
InputStream
>
&
_input
,
Bzip2InputStream
(
std
::
shared_ptr
<
InputStream
>
_input
,
const
char
*
uri
,
Mutex
&
mutex
);
~
Bzip2InputStream
()
override
;
...
...
@@ -111,11 +112,11 @@ bz2_open(Path pathname)
/* single archive handling */
Bzip2InputStream
::
Bzip2InputStream
(
const
std
::
shared_ptr
<
InputStream
>
&
_input
,
Bzip2InputStream
::
Bzip2InputStream
(
std
::
shared_ptr
<
InputStream
>
_input
,
const
char
*
_uri
,
Mutex
&
_mutex
)
:
InputStream
(
_uri
,
_mutex
),
input
(
_input
)
input
(
std
::
move
(
_input
)
)
{
Open
();
}
...
...
src/archive/plugins/Iso9660ArchivePlugin.cxx
View file @
ecad6d93
...
...
@@ -34,6 +34,8 @@
#include <stdlib.h>
#include <string.h>
#include <utility>
#define CEILING(x, y) ((x+(y-1))/y)
struct
Iso9660
{
...
...
@@ -141,12 +143,12 @@ class Iso9660InputStream final : public InputStream {
iso9660_stat_t
*
statbuf
;
public
:
Iso9660InputStream
(
const
std
::
shared_ptr
<
Iso9660
>
&
_iso
,
Iso9660InputStream
(
std
::
shared_ptr
<
Iso9660
>
_iso
,
const
char
*
_uri
,
Mutex
&
_mutex
,
iso9660_stat_t
*
_statbuf
)
:
InputStream
(
_uri
,
_mutex
),
iso
(
_iso
),
statbuf
(
_statbuf
)
{
iso
(
std
::
move
(
_iso
)
),
statbuf
(
_statbuf
)
{
size
=
statbuf
->
size
;
seekable
=
true
;
SetReady
();
...
...
src/db/VHelper.cxx
View file @
ecad6d93
...
...
@@ -23,14 +23,15 @@
#include "song/Filter.hxx"
#include <algorithm>
#include <utility>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
DatabaseVisitorHelper
::
DatabaseVisitorHelper
(
const
DatabaseSelection
&
_selection
,
DatabaseVisitorHelper
::
DatabaseVisitorHelper
(
DatabaseSelection
_selection
,
VisitSong
&
visit_song
)
noexcept
:
selection
(
_selection
)
:
selection
(
std
::
move
(
_selection
)
)
{
// TODO: apply URI and SongFilter
assert
(
selection
.
uri
.
empty
());
...
...
src/db/VHelper.hxx
View file @
ecad6d93
...
...
@@ -60,7 +60,7 @@ public:
* @param visit_song the callback function passed to
* Database::Visit(); may be replaced by this class
*/
DatabaseVisitorHelper
(
const
DatabaseSelection
&
selection
,
DatabaseVisitorHelper
(
DatabaseSelection
selection
,
VisitSong
&
visit_song
)
noexcept
;
~
DatabaseVisitorHelper
()
noexcept
;
...
...
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