summaryrefslogtreecommitdiff
path: root/databases/krecipes/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2011-11-24 14:14:14 +0000
committerjoerg <joerg>2011-11-24 14:14:14 +0000
commita79cb217ac9340061c1634b040adb78cbdfa43a7 (patch)
treed2656f55dfa5b5bc3d1cfb7508aa0f7e28b49010 /databases/krecipes/patches
parent052a6da2ded5bec0d9db2c7e82656e522389ad3f (diff)
downloadpkgsrc-a79cb217ac9340061c1634b040adb78cbdfa43a7.tar.gz
Fix build with modern GCC
Diffstat (limited to 'databases/krecipes/patches')
-rw-r--r--databases/krecipes/patches/patch-krecipes_src_importers_kreimporter.h13
-rw-r--r--databases/krecipes/patches/patch-krecipes_src_importers_recipemlimporter.h21
2 files changed, 34 insertions, 0 deletions
diff --git a/databases/krecipes/patches/patch-krecipes_src_importers_kreimporter.h b/databases/krecipes/patches/patch-krecipes_src_importers_kreimporter.h
new file mode 100644
index 00000000000..3f310e707c7
--- /dev/null
+++ b/databases/krecipes/patches/patch-krecipes_src_importers_kreimporter.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-krecipes_src_importers_kreimporter.h,v 1.1 2011/11/24 14:15:41 joerg Exp $
+
+--- krecipes/src/importers/kreimporter.h.orig 2011-11-24 00:04:33.000000000 +0000
++++ krecipes/src/importers/kreimporter.h
+@@ -46,7 +46,7 @@ private:
+ void readCategoryStructure( const QDomNodeList& l, CategoryTree *tree );
+ void readDescription( const QDomNodeList& l, Recipe* );
+ void readIngredients( const QDomNodeList& l, Recipe*, const QString &header = QString::null, Ingredient *ing = 0 );
+- void readAmount( const QDomElement& amount, double &amount, double &amount_offset );
++ void readAmount( const QDomElement& amount, double &amount2, double &amount_offset );
+ void readRatings( const QDomNodeList&, Recipe * );
+ void readCriterion( const QDomNodeList&, RatingCriteriaList &r );
+ };
diff --git a/databases/krecipes/patches/patch-krecipes_src_importers_recipemlimporter.h b/databases/krecipes/patches/patch-krecipes_src_importers_recipemlimporter.h
new file mode 100644
index 00000000000..f485b22f782
--- /dev/null
+++ b/databases/krecipes/patches/patch-krecipes_src_importers_recipemlimporter.h
@@ -0,0 +1,21 @@
+$NetBSD: patch-krecipes_src_importers_recipemlimporter.h,v 1.1 2011/11/24 14:15:41 joerg Exp $
+
+--- krecipes/src/importers/recipemlimporter.h.orig 2011-11-24 00:06:44.000000000 +0000
++++ krecipes/src/importers/recipemlimporter.h
+@@ -38,14 +38,14 @@ protected:
+ private:
+ void readRecipemlDirections( const QDomElement& dirs );
+ void readRecipemlHead( const QDomElement& head );
+- void readRecipemlIng( const QDomElement& ing, Ingredient *ing = 0, const QString &header = QString::null );
++ void readRecipemlIng( const QDomElement& ing, Ingredient *ing2 = 0, const QString &header = QString::null );
+ void readRecipemlIngs( const QDomElement& ings );
+ void readRecipemlMenu( const QDomElement& menu );
+ void readRecipemlSrcItems( const QDomElement& sources );
+ void readRecipemlRecipe( const QDomElement& recipe );
+ void readRecipemlPreptime( const QDomElement &preptime );
+ void readRecipemlQty( const QDomElement &qty, Ingredient &ing );
+- void readRecipemlRange( const QDomElement& range, double &range, double &range_offset );
++ void readRecipemlRange( const QDomElement& range, double &range2, double &range_offset );
+
+ Recipe recipe;
+ };