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
c883f178
Unverified
Commit
c883f178
authored
Sep 25, 2020
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-tidy: use auto
Found with modernize-use-auto Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
65d25767
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
DecoderAPI.cxx
src/decoder/DecoderAPI.cxx
+2
-2
FileDescriptor.cxx
src/io/FileDescriptor.cxx
+2
-2
No files found.
src/decoder/DecoderAPI.cxx
View file @
c883f178
...
@@ -46,7 +46,7 @@ size_t
...
@@ -46,7 +46,7 @@ size_t
decoder_read_much
(
DecoderClient
*
client
,
InputStream
&
is
,
decoder_read_much
(
DecoderClient
*
client
,
InputStream
&
is
,
void
*
_buffer
,
size_t
size
)
noexcept
void
*
_buffer
,
size_t
size
)
noexcept
{
{
uint8_t
*
buffer
=
(
uint8_t
*
)
_buffer
;
auto
buffer
=
(
uint8_t
*
)
_buffer
;
size_t
total
=
0
;
size_t
total
=
0
;
...
@@ -67,7 +67,7 @@ bool
...
@@ -67,7 +67,7 @@ bool
decoder_read_full
(
DecoderClient
*
client
,
InputStream
&
is
,
decoder_read_full
(
DecoderClient
*
client
,
InputStream
&
is
,
void
*
_buffer
,
size_t
size
)
noexcept
void
*
_buffer
,
size_t
size
)
noexcept
{
{
auto
*
buffer
=
(
uint8_t
*
)
_buffer
;
auto
buffer
=
(
uint8_t
*
)
_buffer
;
while
(
size
>
0
)
{
while
(
size
>
0
)
{
size_t
nbytes
=
decoder_read
(
client
,
is
,
buffer
,
size
);
size_t
nbytes
=
decoder_read
(
client
,
is
,
buffer
,
size
);
...
...
src/io/FileDescriptor.cxx
View file @
c883f178
...
@@ -291,7 +291,7 @@ FileDescriptor::GetSize() const noexcept
...
@@ -291,7 +291,7 @@ FileDescriptor::GetSize() const noexcept
void
void
FileDescriptor
::
FullRead
(
void
*
_buffer
,
size_t
length
)
FileDescriptor
::
FullRead
(
void
*
_buffer
,
size_t
length
)
{
{
auto
*
buffer
=
(
uint8_t
*
)
_buffer
;
auto
buffer
=
(
uint8_t
*
)
_buffer
;
while
(
length
>
0
)
{
while
(
length
>
0
)
{
ssize_t
nbytes
=
Read
(
buffer
,
length
);
ssize_t
nbytes
=
Read
(
buffer
,
length
);
...
@@ -309,7 +309,7 @@ FileDescriptor::FullRead(void *_buffer, size_t length)
...
@@ -309,7 +309,7 @@ FileDescriptor::FullRead(void *_buffer, size_t length)
void
void
FileDescriptor
::
FullWrite
(
const
void
*
_buffer
,
size_t
length
)
FileDescriptor
::
FullWrite
(
const
void
*
_buffer
,
size_t
length
)
{
{
const
uint8_t
*
buffer
=
(
const
uint8_t
*
)
_buffer
;
auto
buffer
=
(
const
uint8_t
*
)
_buffer
;
while
(
length
>
0
)
{
while
(
length
>
0
)
{
ssize_t
nbytes
=
Write
(
buffer
,
length
);
ssize_t
nbytes
=
Write
(
buffer
,
length
);
...
...
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