From 881526d1406cff74c0cef36bcfd95470c97177ab Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 31 Aug 2015 11:48:37 -0400 Subject: Make sure the *pointer* to the XDGDesktop structure is constant, not the structure itself. --- libLumina/LuminaXDG.cpp | 5 +++-- libLumina/LuminaXDG.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libLumina/LuminaXDG.cpp b/libLumina/LuminaXDG.cpp index ca20eef5..cb4fab3c 100644 --- a/libLumina/LuminaXDG.cpp +++ b/libLumina/LuminaXDG.cpp @@ -83,8 +83,9 @@ bool LFileInfo::isDesktopFile(){ } // -- Allow access to the XDG desktop data structure -const XDGDesktop* LFileInfo::XDG(){ - return &desk; +XDGDesktop* LFileInfo::XDG() const{ + + return (XDGDesktop * const)(&desk); } // -- Check if this is a readable image file (for thumbnail support) diff --git a/libLumina/LuminaXDG.h b/libLumina/LuminaXDG.h index 9f2f75ab..1bef5caa 100644 --- a/libLumina/LuminaXDG.h +++ b/libLumina/LuminaXDG.h @@ -97,7 +97,7 @@ public: bool isDesktopFile(); // -- Allow access to the internal XDG desktop data structure - const XDGDesktop* XDG(); + XDGDesktop* XDG() const; //Other file type identification routines bool isImage(); //Is a readable image file (for thumbnail support) -- cgit