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
bcc4e97c
Commit
bcc4e97c
authored
5 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/PcmFormat: use `using` instead of `typedef`
parent
4968dd4f
sisyphus
0.23.15-alt1
0.23.14-alt1
0.23.13-alt1
0.23.12-alt1
0.23.11-alt1
0.23.8-alt3
0.23.8-alt2
0.23.8-alt1
gb-sisyphus-task339776.6100
gb-sisyphus-task337393.100
gb-sisyphus-task337176.300
gb-sisyphus-task334590.100
gb-sisyphus-task333607.100
gb-sisyphus-task331543.2500
gb-sisyphus-task328663.4700
gb-sisyphus-task325064.100
gb-sisyphus-task319111.4000
gb-sisyphus-task313704.100
gb-sisyphus-task312885.100
gb-sisyphus-task308905.3200
gb-sisyphus-task305294.500
gb-sisyphus-task304007.100
gb-sisyphus-task303674.1700
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
PcmFormat.cxx
src/pcm/PcmFormat.cxx
+8
-8
No files found.
src/pcm/PcmFormat.cxx
View file @
bcc4e97c
...
...
@@ -33,8 +33,8 @@
*/
template
<
typename
C
>
struct
PerSampleConvert
:
C
{
typedef
typename
C
::
SrcTraits
SrcTraits
;
typedef
typename
C
::
DstTraits
DstTraits
;
using
SrcTraits
=
typename
C
::
SrcTraits
;
using
DstTraits
=
typename
C
::
DstTraits
;
void
Convert
(
typename
DstTraits
::
pointer
gcc_restrict
out
,
typename
SrcTraits
::
const_pointer
gcc_restrict
in
,
...
...
@@ -48,8 +48,8 @@ struct Convert8To16
SampleFormat
::
S16
>>
{};
struct
Convert24To16
{
typedef
SampleTraits
<
SampleFormat
::
S24_P32
>
SrcTraits
;
typedef
SampleTraits
<
SampleFormat
::
S16
>
DstTraits
;
using
SrcTraits
=
SampleTraits
<
SampleFormat
::
S24_P32
>
;
using
DstTraits
=
SampleTraits
<
SampleFormat
::
S16
>
;
PcmDither
&
dither
;
...
...
@@ -61,8 +61,8 @@ struct Convert24To16 {
};
struct
Convert32To16
{
typedef
SampleTraits
<
SampleFormat
::
S32
>
SrcTraits
;
typedef
SampleTraits
<
SampleFormat
::
S16
>
DstTraits
;
using
SrcTraits
=
SampleTraits
<
SampleFormat
::
S32
>
;
using
DstTraits
=
SampleTraits
<
SampleFormat
::
S16
>
;
PcmDither
&
dither
;
...
...
@@ -88,8 +88,8 @@ struct FloatToInteger : PortableFloatToInteger<F, Traits> {};
template
<
typename
Optimized
,
typename
Portable
>
class
GlueOptimizedConvert
:
Optimized
,
Portable
{
public
:
typedef
typename
Portable
::
SrcTraits
SrcTraits
;
typedef
typename
Portable
::
DstTraits
DstTraits
;
using
SrcTraits
=
typename
Portable
::
SrcTraits
;
using
DstTraits
=
typename
Portable
::
DstTraits
;
void
Convert
(
typename
DstTraits
::
pointer
out
,
typename
SrcTraits
::
const_pointer
in
,
...
...
This diff is collapsed.
Click to expand it.
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