diff options
author | Ken Moore <moorekou@gmail.com> | 2015-08-31 11:48:37 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-08-31 11:48:37 -0400 |
commit | 881526d1406cff74c0cef36bcfd95470c97177ab (patch) | |
tree | 66386cbb542f8e8732d13854c952d8ff7296e0f5 | |
parent | Change the DEBUG define in DirData.h to DIR_DEBUG: leave the DEBUG variables ... (diff) | |
download | lumina-881526d1406cff74c0cef36bcfd95470c97177ab.tar.gz lumina-881526d1406cff74c0cef36bcfd95470c97177ab.tar.bz2 lumina-881526d1406cff74c0cef36bcfd95470c97177ab.zip |
Make sure the *pointer* to the XDGDesktop structure is constant, not the structure itself.
-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) |