Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
41f94bf3
Commit
41f94bf3
authored
Jan 29, 2019
by
Ivan Pizhenko
Committed by
Adam Cozzette
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GetErrno() to be const (#5595)
* Fix GetErrno() to be const noexcept * Removed noexcept
parent
a21caa23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
zero_copy_stream_impl.h
src/google/protobuf/io/zero_copy_stream_impl.h
+4
-4
No files found.
src/google/protobuf/io/zero_copy_stream_impl.h
View file @
41f94bf3
...
...
@@ -86,7 +86,7 @@ class PROTOBUF_EXPORT FileInputStream : public ZeroCopyInputStream {
// errno from that error. Otherwise, this is zero. Once an error
// occurs, the stream is broken and all subsequent operations will
// fail.
int
GetErrno
()
{
return
copying_input_
.
GetErrno
();
}
int
GetErrno
()
const
{
return
copying_input_
.
GetErrno
();
}
// implements ZeroCopyInputStream ----------------------------------
bool
Next
(
const
void
**
data
,
int
*
size
)
override
;
...
...
@@ -102,7 +102,7 @@ class PROTOBUF_EXPORT FileInputStream : public ZeroCopyInputStream {
bool
Close
();
void
SetCloseOnDelete
(
bool
value
)
{
close_on_delete_
=
value
;
}
int
GetErrno
()
{
return
errno_
;
}
int
GetErrno
()
const
{
return
errno_
;
}
// implements CopyingInputStream ---------------------------------
int
Read
(
void
*
buffer
,
int
size
)
override
;
...
...
@@ -169,7 +169,7 @@ class PROTOBUF_EXPORT FileOutputStream : public ZeroCopyOutputStream {
// errno from that error. Otherwise, this is zero. Once an error
// occurs, the stream is broken and all subsequent operations will
// fail.
int
GetErrno
()
{
return
copying_output_
.
GetErrno
();
}
int
GetErrno
()
const
{
return
copying_output_
.
GetErrno
();
}
// implements ZeroCopyOutputStream ---------------------------------
bool
Next
(
void
**
data
,
int
*
size
)
override
;
...
...
@@ -184,7 +184,7 @@ class PROTOBUF_EXPORT FileOutputStream : public ZeroCopyOutputStream {
bool
Close
();
void
SetCloseOnDelete
(
bool
value
)
{
close_on_delete_
=
value
;
}
int
GetErrno
()
{
return
errno_
;
}
int
GetErrno
()
const
{
return
errno_
;
}
// implements CopyingOutputStream --------------------------------
bool
Write
(
const
void
*
buffer
,
int
size
)
override
;
...
...
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