diff --git a/src/html/chm.cpp b/src/html/chm.cpp
index cf3e04925e..27ca831d8b 100644
--- a/src/html/chm.cpp
+++ b/src/html/chm.cpp
@@ -51,13 +51,13 @@ public:
const wxArrayString *GetFileNames()
{
return m_fileNames;
- };
+ }
- /// get the name of the archive representated by this class
- const wxString GetArchiveName()
+ /// get the name of the archive represented by this class
+ const wxString GetArchiveName() const
{
return m_chmFileName;
- };
+ }
/// Find a file in the archive
const wxString Find(const wxString& pattern,