diff options
Diffstat (limited to 'libLumina')
-rw-r--r-- | libLumina/LuminaXDG.cpp | 5 | ||||
-rw-r--r-- | 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) |