From 6cc276d9b0907394b4afe1819eed5ae96eaa3fe1 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 27 Dec 2013 13:35:08 +0100 Subject: [PATCH] Mark constant method as const Signed-off-by: Sven Strickroth --- src/Utils/DropFiles.cpp | 3 ++- src/Utils/DropFiles.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Utils/DropFiles.cpp b/src/Utils/DropFiles.cpp index 14b578653..aacf5be99 100644 --- a/src/Utils/DropFiles.cpp +++ b/src/Utils/DropFiles.cpp @@ -1,5 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control +// Copyright (C) 2013 - TortoiseGit // Copyright (C) 2006, 2008 - TortoiseSVN // This program is free software; you can redistribute it and/or @@ -35,7 +36,7 @@ void CDropFiles::AddFile(const CString &sFile) m_arFiles.Add(sFile); } -INT_PTR CDropFiles::GetCount() +INT_PTR CDropFiles::GetCount() const { return m_arFiles.GetCount(); } diff --git a/src/Utils/DropFiles.h b/src/Utils/DropFiles.h index 555e0de36..65d404382 100644 --- a/src/Utils/DropFiles.h +++ b/src/Utils/DropFiles.h @@ -1,5 +1,6 @@ // TortoiseGit - a Windows shell extension for easy version control +// Copyright (C) 2013 - TortoiseGit // Copyright (C) 2006-2007 - TortoiseSVN // This program is free software; you can redistribute it and/or @@ -45,7 +46,7 @@ public: /** * Returns the number of files which have been added */ - INT_PTR GetCount(); + INT_PTR GetCount() const; /** * Call this method when dragging begins. It will fill -- 2.11.4.GIT