Commit Graph

9 Commits

Author SHA1 Message Date
Uwe Hermann 870ea3dbf3 Consistenty use auto-generated namespace comments.
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,google-readability-namespace-comments" -fix

Switch to the format used by clang-tidy to allow easy, automatic,
tool-based maintenance / checking of the comments.

This also found a few instances of comments that were out of sync.
2017-03-23 19:42:18 +01:00
Uwe Hermann 6f925ba9d6 Don't use std:: in the code directly (where possible).
Use "using std::foo" to make the actual code itself a lot more readable.

There are some exceptions where we usually cannot do this, e.g. std::thread
often conflicts with "thread" from Qt or Boost.
2017-03-18 20:00:51 +01:00
Gerhard Sittig efdec55aec license: remove FSF postal address from boiler plate license text
Remove the FSF postal address as it might change (it did in the past).
Reference the gnu.org website instead which is more stable.
2017-01-07 16:11:15 +01:00
Soeren Apel 5d6ae8a26c Fix unit tests and prevent warnings 2016-01-31 18:06:07 +01:00
Jens Steinhauser 3ccf0f7f5b Untangle the time formatting functions a bit
The formatting depending on the distance between two timestamps is
reintroduced with the responding function residing in the 'Ruler' class
(the prime user of that function).

Fixes a rounding bug for the least significant digit in the
'format_time_minutes()' function.

The 'Cursor' and 'CursorPair' classes now use the same precision when
formatting timestamps as the rest of the program.
2015-09-04 12:54:52 +02:00
Jens Steinhauser c677193dc6 View: Change the type of tick_period to pv::util::Timestamp
This makes the tick position/label calculation in the ruler more precise,
avoiding rounded values for zero which would yield to "+0" or "-0" labels.
2015-09-04 12:54:52 +02:00
Jens Steinhauser d001f416ae Use typesafe enum classes in pv::util 2015-09-04 12:54:52 +02:00
Jens Steinhauser af95045e90 format_time(): Use the timestamp type in the calculation 2015-09-04 12:54:52 +02:00
Jens Steinhauser f52be90d7f format_si_value(): Use the timestamp type in the calculation 2015-09-04 12:54:52 +02:00