mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Removed redundant calls that сause compilation nodiscard warnings. (#2251)
This commit is contained in:
parent
f42a6d23cc
commit
eb1f08ce6a
@ -509,7 +509,6 @@ namespace dlib
|
||||
)
|
||||
{
|
||||
std::ios::fmtflags oldflags = out.flags();
|
||||
out.flags();
|
||||
out << item << ' ';
|
||||
out.flags(oldflags);
|
||||
if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c");
|
||||
@ -521,8 +520,8 @@ namespace dlib
|
||||
)
|
||||
{
|
||||
std::ios::fmtflags oldflags = in.flags();
|
||||
in.flags();
|
||||
in >> item; in.flags(oldflags);
|
||||
in >> item;
|
||||
in.flags(oldflags);
|
||||
if (in.get() != ' ')
|
||||
{
|
||||
item = 0;
|
||||
|
@ -534,7 +534,6 @@ namespace dlib
|
||||
)
|
||||
{
|
||||
std::ios::fmtflags oldflags = out.flags();
|
||||
out.flags();
|
||||
out << item << ' ';
|
||||
out.flags(oldflags);
|
||||
if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c");
|
||||
@ -546,8 +545,8 @@ namespace dlib
|
||||
)
|
||||
{
|
||||
std::ios::fmtflags oldflags = in.flags();
|
||||
in.flags();
|
||||
in >> item; in.flags(oldflags);
|
||||
in >> item;
|
||||
in.flags(oldflags);
|
||||
if (in.get() != ' ')
|
||||
{
|
||||
item = 0;
|
||||
|
@ -253,7 +253,6 @@ namespace dlib
|
||||
)
|
||||
{
|
||||
std::ios::fmtflags oldflags = out.flags();
|
||||
out.flags();
|
||||
out << item << ' ';
|
||||
out.flags(oldflags);
|
||||
if (!out) throw serialization_error("Error serializing object of type bigint_kernel_c");
|
||||
@ -268,8 +267,8 @@ namespace dlib
|
||||
)
|
||||
{
|
||||
std::ios::fmtflags oldflags = in.flags();
|
||||
in.flags();
|
||||
in >> item; in.flags(oldflags);
|
||||
in >> item;
|
||||
in.flags(oldflags);
|
||||
if (in.get() != ' ')
|
||||
{
|
||||
item = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user