laforge has submitted this change and it was merged. (
https://gerrit.osmocom.org/c/osmo-trx/+/14863 )
Change subject: Timeval: Restore output stream flags after changing them
......................................................................
Timeval: Restore output stream flags after changing them
Change-Id: I866505f29ed56d8f3ba3aaba70c0d82479987c64
Closes: CID#149361
---
M CommonLibs/Timeval.cpp
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/CommonLibs/Timeval.cpp b/CommonLibs/Timeval.cpp
index fd1bcda..420dd04 100644
--- a/CommonLibs/Timeval.cpp
+++ b/CommonLibs/Timeval.cpp
@@ -87,8 +87,9 @@
ostream& operator<<(ostream& os, const Timeval& tv)
{
- os.setf( ios::fixed, ios::floatfield );
+ ios_base::fmtflags flags_backup = os.setf( ios::fixed, ios::floatfield
);
os << tv.seconds();
+ os.flags( flags_backup );
return os;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/14863
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I866505f29ed56d8f3ba3aaba70c0d82479987c64
Gerrit-Change-Number: 14863
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-MessageType: merged