1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-07 19:36:07 -04:00
Robin Getz 1253697801 gui: Explicitly call QSlider::setRange in LogSlider constructor
cppcheck identified that LogSlider::LogSlider() calls the derived
setRange(double, double) overload instead of QSlider::setRange(int, int)
due to C++ name hiding.

The constructor's call to:
    setRange(0, 1000);

was therefore invoking the logarithmic range implementation with
min == 0.0, resulting in a call to log10(0). While most callers
immediately replace the initial state by calling LogSlider::setRange()
with a valid positive range, the constructor still performs an invalid
mathematical operation during initialization.

Explicitly qualify the call as QSlider::setRange(0, 1000) to initialize
the underlying slider without invoking the logarithmic overload. This
eliminates the invalid-domain call, avoids undefined behavior from
propagating exceptional floating-point values into the slider state, and
makes the constructor's intent explicit.

This change has no functional impact on normal operation, but removes a
latent initialization bug and prevents future regressions caused by
overload hiding.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
2026-07-31 20:37:23 -04:00
2026-07-04 18:22:23 +02:00
2024-07-10 23:06:38 +02:00
2026-03-25 18:58:43 +00:00
2026-03-27 21:17:46 +01:00
2026-06-22 11:08:58 +01:00
2024-08-03 11:05:12 +02:00
2026-07-04 18:22:23 +02:00
2026-07-04 18:22:23 +02:00
2023-05-02 19:43:59 +02:00

SDR Angel banner

SDRangel is an open-source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.

Wiki: Most of the information and documentation related to SDRangel can be found in the Wiki. Please make sure to check it in case of questions or trouble and before you post issues on GitHub. You may also seek help from other users using the discussion group below. Before running the program, make sure you read at least the Home and Quick Start pages.

Discussion group: You can ask other users for help or discuss subjects related to SDRangel and its ancillary projects here.

Ancillary projects

  • SDRangelcli is a web application that can be used to control a headless (server flavor) instance of SDRangel. It can also be used as a remote control for the GUI flavor.
  • SDRangel-Docker is a collection of Docker files and scripts to facilitate building and running SDRangel in a Docker container. Works for either the GUI (only on a Linux host) or the server.
Languages
C++ 69.9%
JavaScript 27.4%
CMake 0.9%
C 0.8%
Python 0.3%
Other 0.6%