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
c0d8a9b0
Commit
c0d8a9b0
authored
Dec 28, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/httpd/Page: add `noexcept`
parent
5b0d23d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Page.cxx
src/output/plugins/httpd/Page.cxx
+1
-1
Page.hxx
src/output/plugins/httpd/Page.hxx
+5
-5
No files found.
src/output/plugins/httpd/Page.cxx
View file @
c0d8a9b0
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include <string.h>
#include <string.h>
Page
::
Page
(
const
void
*
data
,
size_t
size
)
Page
::
Page
(
const
void
*
data
,
size_t
size
)
noexcept
:
buffer
(
size
)
:
buffer
(
size
)
{
{
memcpy
(
&
buffer
.
front
(),
data
,
size
);
memcpy
(
&
buffer
.
front
(),
data
,
size
);
...
...
src/output/plugins/httpd/Page.hxx
View file @
c0d8a9b0
...
@@ -36,17 +36,17 @@ class Page {
...
@@ -36,17 +36,17 @@ class Page {
AllocatedArray
<
uint8_t
>
buffer
;
AllocatedArray
<
uint8_t
>
buffer
;
public
:
public
:
explicit
Page
(
size_t
_size
)
:
buffer
(
_size
)
{}
explicit
Page
(
size_t
_size
)
noexcept
:
buffer
(
_size
)
{}
explicit
Page
(
AllocatedArray
<
uint8_t
>
&&
_buffer
)
explicit
Page
(
AllocatedArray
<
uint8_t
>
&&
_buffer
)
noexcept
:
buffer
(
std
::
move
(
_buffer
))
{}
:
buffer
(
std
::
move
(
_buffer
))
{}
Page
(
const
void
*
data
,
size_t
size
);
Page
(
const
void
*
data
,
size_t
size
)
noexcept
;
size_t
GetSize
()
const
{
size_t
GetSize
()
const
noexcept
{
return
buffer
.
size
();
return
buffer
.
size
();
}
}
const
uint8_t
*
GetData
()
const
{
const
uint8_t
*
GetData
()
const
noexcept
{
return
&
buffer
.
front
();
return
&
buffer
.
front
();
}
}
};
};
...
...
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