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
4b2b89eb
Commit
4b2b89eb
authored
Nov 12, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/xiph: add "noexcept"
parent
4b2bb883
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
25 deletions
+25
-25
OggPage.hxx
src/lib/xiph/OggPage.hxx
+1
-1
OggSerial.cxx
src/lib/xiph/OggSerial.cxx
+1
-1
OggSerial.hxx
src/lib/xiph/OggSerial.hxx
+1
-1
OggStreamState.hxx
src/lib/xiph/OggStreamState.hxx
+12
-12
OggSyncState.hxx
src/lib/xiph/OggSyncState.hxx
+1
-1
VorbisComment.hxx
src/lib/xiph/VorbisComment.hxx
+5
-5
VorbisComments.cxx
src/lib/xiph/VorbisComments.cxx
+2
-2
VorbisComments.hxx
src/lib/xiph/VorbisComments.hxx
+2
-2
No files found.
src/lib/xiph/OggPage.hxx
View file @
4b2b89eb
...
...
@@ -29,7 +29,7 @@
#include <stdint.h>
static
size_t
ReadPage
(
const
ogg_page
&
page
,
void
*
_buffer
,
size_t
size
)
ReadPage
(
const
ogg_page
&
page
,
void
*
_buffer
,
size_t
size
)
noexcept
{
assert
(
page
.
header_len
>
0
||
page
.
body_len
>
0
);
...
...
src/lib/xiph/OggSerial.cxx
View file @
4b2b89eb
...
...
@@ -26,7 +26,7 @@
static
std
::
atomic_uint
next_ogg_serial
;
int
GenerateOggSerial
()
GenerateOggSerial
()
noexcept
{
unsigned
serial
=
++
next_ogg_serial
;
if
(
gcc_unlikely
(
serial
<
16
))
{
...
...
src/lib/xiph/OggSerial.hxx
View file @
4b2b89eb
...
...
@@ -24,6 +24,6 @@
* Generate the next pseudo-random Ogg serial.
*/
int
GenerateOggSerial
();
GenerateOggSerial
()
noexcept
;
#endif
src/lib/xiph/OggStreamState.hxx
View file @
4b2b89eb
...
...
@@ -32,7 +32,7 @@ class OggStreamState {
ogg_stream_state
state
;
public
:
explicit
OggStreamState
(
int
serialno
)
{
explicit
OggStreamState
(
int
serialno
)
noexcept
{
ogg_stream_init
(
&
state
,
serialno
);
}
...
...
@@ -40,53 +40,53 @@ public:
* Initialize a decoding #ogg_stream_state with the first
* page.
*/
explicit
OggStreamState
(
ogg_page
&
page
)
{
explicit
OggStreamState
(
ogg_page
&
page
)
noexcept
{
ogg_stream_init
(
&
state
,
ogg_page_serialno
(
&
page
));
PageIn
(
page
);
}
~
OggStreamState
()
{
~
OggStreamState
()
noexcept
{
ogg_stream_clear
(
&
state
);
}
operator
ogg_stream_state
&
()
{
operator
ogg_stream_state
&
()
noexcept
{
return
state
;
}
void
Reinitialize
(
int
serialno
)
{
void
Reinitialize
(
int
serialno
)
noexcept
{
ogg_stream_reset_serialno
(
&
state
,
serialno
);
}
long
GetSerialNo
()
const
{
long
GetSerialNo
()
const
noexcept
{
return
state
.
serialno
;
}
void
Reset
()
{
void
Reset
()
noexcept
{
ogg_stream_reset
(
&
state
);
}
/* encoding */
void
PacketIn
(
const
ogg_packet
&
packet
)
{
void
PacketIn
(
const
ogg_packet
&
packet
)
noexcept
{
ogg_stream_packetin
(
&
state
,
const_cast
<
ogg_packet
*>
(
&
packet
));
}
bool
PageOut
(
ogg_page
&
page
)
{
bool
PageOut
(
ogg_page
&
page
)
noexcept
{
return
ogg_stream_pageout
(
&
state
,
&
page
)
!=
0
;
}
bool
Flush
(
ogg_page
&
page
)
{
bool
Flush
(
ogg_page
&
page
)
noexcept
{
return
ogg_stream_flush
(
&
state
,
&
page
)
!=
0
;
}
/* decoding */
bool
PageIn
(
ogg_page
&
page
)
{
bool
PageIn
(
ogg_page
&
page
)
noexcept
{
return
ogg_stream_pagein
(
&
state
,
&
page
)
==
0
;
}
int
PacketOut
(
ogg_packet
&
packet
)
{
int
PacketOut
(
ogg_packet
&
packet
)
noexcept
{
return
ogg_stream_packetout
(
&
state
,
&
packet
);
}
};
...
...
src/lib/xiph/OggSyncState.hxx
View file @
4b2b89eb
...
...
@@ -49,7 +49,7 @@ public:
OggSyncState
(
const
OggSyncState
&
)
=
delete
;
OggSyncState
&
operator
=
(
const
OggSyncState
&
)
=
delete
;
void
Reset
()
{
void
Reset
()
noexcept
{
ogg_sync_reset
(
&
oy
);
}
...
...
src/lib/xiph/VorbisComment.hxx
View file @
4b2b89eb
...
...
@@ -31,26 +31,26 @@ class VorbisComment {
vorbis_comment
vc
;
public
:
VorbisComment
()
{
VorbisComment
()
noexcept
{
vorbis_comment_init
(
&
vc
);
}
~
VorbisComment
()
{
~
VorbisComment
()
noexcept
{
vorbis_comment_clear
(
&
vc
);
}
VorbisComment
(
const
VorbisComment
&
)
=
delete
;
VorbisComment
&
operator
=
(
const
VorbisComment
&
)
=
delete
;
operator
vorbis_comment
&
()
{
operator
vorbis_comment
&
()
noexcept
{
return
vc
;
}
operator
vorbis_comment
*
()
{
operator
vorbis_comment
*
()
noexcept
{
return
&
vc
;
}
void
AddTag
(
const
char
*
tag
,
const
char
*
contents
)
{
void
AddTag
(
const
char
*
tag
,
const
char
*
contents
)
noexcept
{
vorbis_comment_add_tag
(
&
vc
,
tag
,
contents
);
}
};
...
...
src/lib/xiph/VorbisComments.cxx
View file @
4b2b89eb
...
...
@@ -29,7 +29,7 @@
#include "util/DivideString.hxx"
bool
vorbis_comments_to_replay_gain
(
ReplayGainInfo
&
rgi
,
char
**
comments
)
vorbis_comments_to_replay_gain
(
ReplayGainInfo
&
rgi
,
char
**
comments
)
noexcept
{
rgi
.
Clear
();
...
...
@@ -100,7 +100,7 @@ vorbis_comments_scan(char **comments,
}
Tag
*
vorbis_comments_to_tag
(
char
**
comments
)
vorbis_comments_to_tag
(
char
**
comments
)
noexcept
{
TagBuilder
tag_builder
;
vorbis_comments_scan
(
comments
,
add_tag_handler
,
&
tag_builder
);
...
...
src/lib/xiph/VorbisComments.hxx
View file @
4b2b89eb
...
...
@@ -27,13 +27,13 @@ struct TagHandler;
struct
Tag
;
bool
vorbis_comments_to_replay_gain
(
ReplayGainInfo
&
rgi
,
char
**
comments
);
vorbis_comments_to_replay_gain
(
ReplayGainInfo
&
rgi
,
char
**
comments
)
noexcept
;
void
vorbis_comments_scan
(
char
**
comments
,
const
TagHandler
&
handler
,
void
*
handler_ctx
);
Tag
*
vorbis_comments_to_tag
(
char
**
comments
);
vorbis_comments_to_tag
(
char
**
comments
)
noexcept
;
#endif
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