Update of /cvsroot/cpptool/rfta/src/rfta
In directory sc8-pr-cvs1:/tmp/cvs-serv25598/rfta/src/rfta
Modified Files:
ReplaceTextTransform.h
Log Message:
-- has now a super class "Transform"
Index: ReplaceTextTransform.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/rfta/ReplaceTextTransform.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ReplaceTextTransform.h 7 Mar 2003 09:31:44 -0000 1.5
--- ReplaceTextTransform.h 16 Dec 2003 13:27:29 -0000 1.6
***************
*** 10,13 ****
--- 10,14 ----
#include <rfta/parser/SourceRange.h>
#include <string>
+ #include "Transform.h"
namespace Refactoring
***************
*** 18,22 ****
/// Replace a piece of text by another one.
! class ReplaceTextTransform
{
public:
--- 19,23 ----
/// Replace a piece of text by another one.
! class ReplaceTextTransform: public Transform
{
public:
***************
*** 35,38 ****
--- 36,41 ----
int getStartIndex();
+ int getLength();
+
private:
SourceRange range_;
***************
*** 44,47 ****
--- 47,56 ----
// Inlines methods for ReplaceTextTransform:
// -----------------------------------------
+
+ inline int
+ ReplaceTextTransform::getLength()
+ {
+ return range_.getLength();
+ }
|