summaryrefslogtreecommitdiffstats
path: root/languages/ruby/rubyimplementationwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/rubyimplementationwidget.cpp')
-rw-r--r--languages/ruby/rubyimplementationwidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/languages/ruby/rubyimplementationwidget.cpp b/languages/ruby/rubyimplementationwidget.cpp
index 3ddaec11..0b54fe2f 100644
--- a/languages/ruby/rubyimplementationwidget.cpp
+++ b/languages/ruby/rubyimplementationwidget.cpp
@@ -44,9 +44,9 @@ TQStringList RubyImplementationWidget::createClassFiles()
TQString template_rb = "require '$BASEFILENAME$'\n\nclass $CLASSNAME$ < $BASECLASSNAME$\n\n def initialize(*k)\n super(*k)\n end\n\nend\n";
TQFileInfo formInfo(m_formName);
- template_rb.tqreplace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".rb");
- template_rb.tqreplace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
- template_rb.tqreplace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
+ template_rb.replace(TQRegExp("\\$BASEFILENAME\\$"), formInfo.baseName()+".rb");
+ template_rb.replace(TQRegExp("\\$CLASSNAME\\$"), classNameEdit->text());
+ template_rb.replace(TQRegExp("\\$BASECLASSNAME\\$"), m_baseClassName);
template_rb = FileTemplate::read(m_part, "rb") + template_rb;