Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 623502 Details for
Bug 844070
Review Request: alsamixer-dockapp - Simple mixer application for ALSA drivers
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
removes gcc warnings about conversions from const char* to char*
alsamixer-dockapp-const.patch (text/plain), 2.56 KB, created by
Martin Gieseking
on 2012-10-08 15:13:03 UTC
(
hide
)
Description:
removes gcc warnings about conversions from const char* to char*
Filename:
MIME Type:
Creator:
Martin Gieseking
Created:
2012-10-08 15:13:03 UTC
Size:
2.56 KB
patch
obsolete
>diff --git a/Mixer.cc b/Mixer.cc >--- a/Mixer.cc >+++ b/Mixer.cc >@@ -66,10 +66,10 @@ > Atom deleteWindow; > Xpm* image; > char* displayName = NULL; >- char* card = "default"; >+ const char* card = "default"; > > mError = 0; >- mInstanceName = INSTANCENAME; >+ mInstanceName = const_cast<char*>(INSTANCENAME); > mVolumeSource[0] = -1; > mVolumeSource[1] = -1; > mVolumeSource[2] = -1; >@@ -231,7 +231,7 @@ > > // Set classhint > classHint.res_name = mInstanceName; >- classHint.res_class = CLASSNAME; >+ classHint.res_class = const_cast<char*>(CLASSNAME); > XSetClassHint(mDisplay, mAppWin, &classHint); > > // Create delete atom >diff --git a/Xpm.cc b/Xpm.cc >--- a/Xpm.cc >+++ b/Xpm.cc >@@ -30,14 +30,14 @@ > > using namespace std; > >-Xpm::Xpm(Display* display, Window root, char** data) >+Xpm::Xpm(Display* display, Window root, const char** data) > { > int error; > > mDisplay = display; > > mAttributes.valuemask = 0; >- error = XpmCreatePixmapFromData(mDisplay, root, data, &mImage, &mMask, &mAttributes); >+ error = XpmCreatePixmapFromData(mDisplay, root, const_cast<char**>(data), &mImage, &mMask, &mAttributes); > > switch (error) { > case XpmColorError: >diff --git a/Xpm.h b/Xpm.h >--- a/Xpm.h >+++ b/Xpm.h >@@ -28,7 +28,7 @@ > class Xpm > { > public: >- Xpm(Display* display, Window root, char** data); >+ Xpm(Display* display, Window root, const char** data); > virtual ~Xpm(); > void setWindowPixmap(Window win); > void setWindowPixmapShaped(Window win); >diff --git a/skins/default/button.xpm b/skins/default/button.xpm >--- a/skins/default/button.xpm >+++ b/skins/default/button.xpm >@@ -1,5 +1,5 @@ > /* XPM */ >-static char * button_xpm[] = { >+static const char * button_xpm[] = { > "16 9 17 1", > " c None", > ". c #B7BAC7", >diff --git a/skins/default/main.xpm b/skins/default/main.xpm >--- a/skins/default/main.xpm >+++ b/skins/default/main.xpm >@@ -1,5 +1,5 @@ > /* XPM */ >-static char * main_xpm[] = { >+static const char * main_xpm[] = { > "64 64 194 2", > " c None", > ". c #000000", >diff --git a/skins/default/mutebutton.xpm b/skins/default/mutebutton.xpm >--- a/skins/default/mutebutton.xpm >+++ b/skins/default/mutebutton.xpm >@@ -1,5 +1,5 @@ > /* XPM */ >-static char * mutebutton_xpm[] = { >+static const char * mutebutton_xpm[] = { > "16 9 18 1", > " c None", > ". c #B7BAC7", >diff --git a/skins/default/redlight.xpm b/skins/default/redlight.xpm >--- a/skins/default/redlight.xpm >+++ b/skins/default/redlight.xpm >@@ -1,5 +1,5 @@ > /* XPM */ >-static char * redlight_xpm[] = { >+static const char * redlight_xpm[] = { > "3 2 2 1", > " c None", > ". c #FF0000",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 844070
: 623502