Index: src/ch/FileInfo.cpp =================================================================== diff -u -N -r044d0e17cdedf3055202486a2235e1a3c8dd6e56 -rca1933ef07e18d939449e4878eca5cc81cc73f3f --- src/ch/FileInfo.cpp (.../FileInfo.cpp) (revision 044d0e17cdedf3055202486a2235e1a3c8dd6e56) +++ src/ch/FileInfo.cpp (.../FileInfo.cpp) (revision ca1933ef07e18d939449e4878eca5cc81cc73f3f) @@ -114,7 +114,7 @@ m_strDstPath = strPath; } -CString CClipboardEntry::GetDestinationPath() +CString CClipboardEntry::GetDestinationPath() const { return m_strDstPath; } @@ -483,7 +483,7 @@ && rInfo.m_ftLastWrite.dwHighDateTime == m_ftLastWrite.dwHighDateTime && rInfo.m_ftLastWrite.dwLowDateTime == m_ftLastWrite.dwLowDateTime && rInfo.m_uhFileSize == m_uhFileSize); } -CString CFileInfo::GetDestinationPath(CString strPath, int iFlags) +CString CFileInfo::GetDestinationPath(CString strPath, int iFlags) const { // add '\\' if (strPath.Right(1) != _T("\\")) @@ -540,7 +540,7 @@ return strPath; } -int CFileInfo::GetBufferIndex(const CDestPath& dpDestPath) +int CFileInfo::GetBufferIndex(const CDestPath& dpDestPath) const { if(m_stSrcIndex != std::numeric_limits::max()) return m_pClipboard->GetAt(m_stSrcIndex)->GetBufferIndex(dpDestPath); @@ -550,7 +550,7 @@ /////////////////////////////////////////////////////////////////////// // Array -CFileInfoArray::CFileInfoArray(CClipboardArray& rClipboardArray) : +CFileInfoArray::CFileInfoArray(const CClipboardArray& rClipboardArray) : m_rClipboard(rClipboardArray) { } @@ -613,14 +613,14 @@ return ullSize; } -int CFileInfoArray::GetBufferIndexAt(size_t stIndex, const CDestPath& rDestPath) +int CFileInfoArray::GetBufferIndexAt(size_t stIndex, const CDestPath& rDestPath) const { boost::shared_lock lock(m_lock); if(stIndex >= m_vFiles.size()) return 0; else { - CFileInfoPtr& spFileInfo = m_vFiles[stIndex]; + const CFileInfoPtr& spFileInfo = m_vFiles[stIndex]; if(!spFileInfo) THROW(_T("Invalid pointer"), 0, 0, 0);