diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-12-31 18:04:37 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-01-01 02:05:07 +0000 |
commit | 93f9416c3660b87896e8b59a4d952fb851002bb5 (patch) | |
tree | 26109e8503ac6ea7457a5b53f4f8aa398029a593 /ui/qt/color_utils.cpp | |
parent | f7b3bda9b3957d8b479d0d7d5694ea6364ecb1a8 (diff) | |
download | wireshark-93f9416c3660b87896e8b59a4d952fb851002bb5.tar.gz |
Get rid of the "pixel" member of a color_t.
Now that we're letting GTK+/GDK allocate colors behind the scenes, if it
allocates them at all, there's no reason to save the allocated color in
the toolkit-independent color value.
Change-Id: I99df32bd6b07924f41f3d855d2ddecb3dc8d5201
Reviewed-on: https://code.wireshark.org/review/12983
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/color_utils.cpp')
-rw-r--r-- | ui/qt/color_utils.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ui/qt/color_utils.cpp b/ui/qt/color_utils.cpp index d90d6046f7..e6576b0938 100644 --- a/ui/qt/color_utils.cpp +++ b/ui/qt/color_utils.cpp @@ -67,7 +67,6 @@ QColor ColorUtils::fromColorT(color_t color) const color_t ColorUtils::toColorT(const QColor color) { color_t colort; - colort.pixel = 0; colort.red = (color.red() << 8) | color.red(); colort.green = (color.green() << 8) | color.green(); colort.blue = (color.blue() << 8) | color.blue(); |