From fdd64842f071436a20dbf2ba52257d50bb7bc1a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 12 Feb 2011 14:03:52 +0100
Subject: Move ChatSnippet::escape() to header.


diff --git a/Swift/QtUI/ChatSnippet.cpp b/Swift/QtUI/ChatSnippet.cpp
index 4d23526..7524623 100644
--- a/Swift/QtUI/ChatSnippet.cpp
+++ b/Swift/QtUI/ChatSnippet.cpp
@@ -16,16 +16,6 @@ ChatSnippet::ChatSnippet(bool appendToPrevious) : appendToPrevious_(appendToPrev
 ChatSnippet::~ChatSnippet() {
 }
 
-QString ChatSnippet::escape(const QString& original) {
-	QString result(original);
-	result.replace("%message%", "&#37;message&#37;");
-	result.replace("%sender%", "&#37;sender&#37;");
-	result.replace("%time%", "%&#37;time&#37;");
-	result.replace("%shortTime%", "%&#37;shortTime&#37;");
-	result.replace("%userIconPath%", "&#37;userIconPath&#37;");
-	return result;
-}
-
 QString ChatSnippet::timeToEscapedString(const QDateTime& time) {
 	QDate now(QDate::currentDate());
 	QString date = "";
diff --git a/Swift/QtUI/ChatSnippet.h b/Swift/QtUI/ChatSnippet.h
index f323295..3aa5fcc 100644
--- a/Swift/QtUI/ChatSnippet.h
+++ b/Swift/QtUI/ChatSnippet.h
@@ -27,7 +27,15 @@ namespace Swift {
 				return appendToPrevious_;
 			}
 			
-			static QString escape(const QString&);
+			static QString escape(const QString& original) {
+				QString result(original);
+				result.replace("%message%", "&#37;message&#37;");
+				result.replace("%sender%", "&#37;sender&#37;");
+				result.replace("%time%", "%&#37;time&#37;");
+				result.replace("%shortTime%", "%&#37;shortTime&#37;");
+				result.replace("%userIconPath%", "&#37;userIconPath&#37;");
+				return result;
+			}
 
 		protected:
 			void setContinuationFallbackSnippet(boost::shared_ptr<ChatSnippet> continuationFallback) {
-- 
cgit v0.10.2-6-g49f6