OSDN Git Service

BUG: [ 1207417 ] Two GetDocument() functions in CDirView
authorPerry Rapp <elsapo@users.sourceforge.net>
Tue, 24 May 2005 14:03:51 +0000 (14:03 +0000)
committerPerry Rapp <elsapo@users.sourceforge.net>
Tue, 24 May 2005 14:03:51 +0000 (14:03 +0000)
  Cosmetic: Added explanatory comment per discussion
  Src: DirView.h

Src/DirView.h
Src/readme.txt

index 2f36feb..1b07618 100644 (file)
@@ -62,6 +62,8 @@ protected:
 // Attributes
 public:
        CDirDoc* GetDocument(); // non-debug version is inline
+
+       // const version, for const methods to be able to call
        const CDirDoc * GetDocument() const { return const_cast<CDirView *>(this)->GetDocument(); }
 
 // Operations
index 07b98cc..f625dbd 100644 (file)
@@ -5,6 +5,9 @@
   Src: DiffViewBar.cpp
  PATCH: [ 1206732 ] Remove unneeded include from VssPrompt.cpp
   Src: VssPrompt.cpp
+ BUG: [ 1207417 ] Two GetDocument() functions in CDirView
+  Cosmetic: Added explanatory comment per discussion
+  Src: DirView.h
 
 2005-02-23 Kimmo
  PATCH: [ 1206647 ] Add trailing slash to MRU paths