commit 2c9d88c0affddd6b3a70edbfa014d8169ed95525
parent e32d0ebff216f9defb13a552793ee4a2aa5c534f
Author: Dominik Schmidt <dominik@schm1dt.ch>
Date: Wed, 12 Dec 2018 15:42:00 +0100
Add the proper d-style array notation
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drss/render.d b/drss/render.d
@@ -15,7 +15,7 @@ public alias DRSS_Header=Tuple!(string, string);
* Returns:
* The XmlNode to the root-node of an valid atom-feed
*/
-XmlNode getRSSRoot(DRSS_Header h[]){
+XmlNode getRSSRoot(DRSS_Header[] h){
XmlNode rss = new XmlNode("feed");
rss.setAttribute("xmlns","http://www.w3.org/2005/Atom");
foreach(DRSS_Header hh; h){
@@ -33,7 +33,7 @@ XmlNode getRSSRoot(DRSS_Header h[]){
* Returns:
* An XmlNode pointing to a Atom-Document.
*/
-XmlNode generateRSS(T)(DRSS!(T) rss, DRSS_Header h[]){
+XmlNode generateRSS(T)(DRSS!(T) rss, DRSS_Header[] h){
XmlNode root = getRSSRoot(h);
foreach(ref T p; rss.entries){
root.addChild(p.toXML());
diff --git a/drss/rss.d b/drss/rss.d
@@ -79,7 +79,7 @@ abstract class DRSS(T=Entry){
protected uint entry_count=0;
protected HTTP http;
- protected ubyte buffer[];
+ protected ubyte[] buffer;
/**
* Parse a raw document.
@@ -196,7 +196,7 @@ abstract class DRSS(T=Entry){
* true if the feed has new entries.
*
*/
- final bool update(ubyte document[]=null){
+ final bool update(ubyte[] document=null){
if(document is null){
if(!fetch()){
return false;