aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/sqlite.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-07-08 12:42:44 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:15 -0400
commitb37b6ca37e7922ad38e712632b1c5ce358e81a7d (patch)
tree3020fe7afd6518d23e1ee97b34c67c98fc6f0955 /src/sdp/output/sqlite.d
parentcosmetic (diff)
reconsider unecessary "return ref"
Diffstat (limited to 'src/sdp/output/sqlite.d')
-rw-r--r--src/sdp/output/sqlite.d46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/sdp/output/sqlite.d b/src/sdp/output/sqlite.d
index 636fe6f..f805392 100644
--- a/src/sdp/output/sqlite.d
+++ b/src/sdp/output/sqlite.d
@@ -158,7 +158,7 @@ template SQLiteFormatAndLoadObject() {
return _txt;
}
auto munge_html(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _html_special_characters(string _txt){
_txt = _txt
@@ -240,7 +240,7 @@ template SQLiteFormatAndLoadObject() {
return _txt;
}
auto html_heading(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _txt = munge_html(obj);
string o = format(q"¶<p class="%s"><b>
@@ -252,7 +252,7 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto html_para(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _txt = munge_html(obj);
_txt = (obj.attrib.bullet) ? ("●&#160;&#160;" ~ _txt) : _txt;
@@ -267,7 +267,7 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto html_quote(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _txt = munge_html(obj);
string o = format(q"¶<p class="%s">
@@ -279,7 +279,7 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto html_group(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _txt = munge_html(obj);
string o = format(q"¶<p class="%s">
@@ -291,7 +291,7 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto html_block(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _txt = munge_html(obj);
string o = format(q"¶
@@ -302,7 +302,7 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto html_verse(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _txt = munge_html(obj);
string o = format(q"¶<p class="%s">%s</p>¶",
@@ -312,7 +312,7 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto html_code(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string _txt = html_special_characters_code(obj.text);
string o = format(q"¶<p class="%s">%s</p>¶",
@@ -322,10 +322,10 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto html_table(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
auto _tablarize(O)(
- auto return ref const O obj,
+ auto ref const O obj,
string _txt,
) {
string[] _table_rows = _txt.split(rgx.table_delimiter_row);
@@ -382,21 +382,21 @@ template SQLiteFormatAndLoadObject() {
return o;
}
auto sqlite_load_string(O,Dm)(
- auto return ref const O obj,
- auto return ref Dm doc_matters,
+ auto ref const O obj,
+ auto ref Dm doc_matters,
) {
string o;
return o;
}
auto postgresql_load_string(O,Dm)(
- auto return ref const O obj,
- auto return ref Dm doc_matters,
+ auto ref const O obj,
+ auto ref Dm doc_matters,
) {
string o;
return o;
}
string sqlite_statement(O)(
- auto return ref const O obj,
+ auto ref const O obj,
string _txt,
string _html,
) {
@@ -410,7 +410,7 @@ template SQLiteFormatAndLoadObject() {
return _sql;
}
auto heading(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),
@@ -429,7 +429,7 @@ template SQLiteFormatAndLoadObject() {
return obj_txt;
}
auto para(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),
@@ -448,7 +448,7 @@ template SQLiteFormatAndLoadObject() {
return obj_txt;
}
auto quote(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),
@@ -467,7 +467,7 @@ template SQLiteFormatAndLoadObject() {
return obj_txt;
}
auto group(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),
@@ -486,7 +486,7 @@ template SQLiteFormatAndLoadObject() {
return obj_txt;
}
auto block(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),
@@ -505,7 +505,7 @@ template SQLiteFormatAndLoadObject() {
return obj_txt;
}
auto verse(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),
@@ -524,7 +524,7 @@ template SQLiteFormatAndLoadObject() {
return obj_txt;
}
auto code(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),
@@ -543,7 +543,7 @@ template SQLiteFormatAndLoadObject() {
return obj_txt;
}
auto table(O)(
- auto return ref const O obj,
+ auto ref const O obj,
) {
string[string] obj_txt = [
"text": generic_munge_sanitize_text_for_search(obj.text),