minor const fix
This commit is contained in:
parent
4e5ea3a83b
commit
e460cf2dc0
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Menu.cc,v 1.20 2003/05/04 10:34:09 fluxgen Exp $
|
// $Id: Menu.cc,v 1.21 2003/05/13 00:24:26 fluxgen Exp $
|
||||||
|
|
||||||
//use GNU extensions
|
//use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -920,7 +920,7 @@ void Menu::setItemEnabled(unsigned int index, bool enable) {
|
||||||
bool Menu::isItemEnabled(unsigned int index) const {
|
bool Menu::isItemEnabled(unsigned int index) const {
|
||||||
if (index >= menuitems.size()) return false;
|
if (index >= menuitems.size()) return false;
|
||||||
|
|
||||||
MenuItem *item = find(index);
|
const MenuItem *item = find(index);
|
||||||
if (!item)
|
if (!item)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue