laforge has uploaded this change for review. (
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: OS#149361
---
M CommonLibs/Timeval.cpp
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/63/14863/1
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: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange