[gbrainy] Closes Analogie file after read + Do not need String.Format
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Closes Analogie file after read + Do not need String.Format
- Date: Sun, 21 Feb 2010 17:52:32 +0000 (UTC)
commit 946d957640cd371e952581336289d665ece659f9
Author: Jordi Mas <jmas softcatala org>
Date: Sun Feb 21 18:53:08 2010 +0100
Closes Analogie file after read + Do not need String.Format
src/Core/Main/Verbal/AnalogiesFactory.cs | 1 +
src/Games/Logic/PuzzleCounting.cs | 3 +--
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Main/Verbal/AnalogiesFactory.cs b/src/Core/Main/Verbal/AnalogiesFactory.cs
index 98f1f7e..cbe2ea6 100644
--- a/src/Core/Main/Verbal/AnalogiesFactory.cs
+++ b/src/Core/Main/Verbal/AnalogiesFactory.cs
@@ -132,6 +132,7 @@ namespace gbrainy.Core.Main.Verbal
}
}
+ reader.Close ();
read = true;
int cnt = 0;
diff --git a/src/Games/Logic/PuzzleCounting.cs b/src/Games/Logic/PuzzleCounting.cs
index b5029d2..d6a725b 100644
--- a/src/Games/Logic/PuzzleCounting.cs
+++ b/src/Games/Logic/PuzzleCounting.cs
@@ -93,8 +93,7 @@ namespace gbrainy.Games.Logic
// Translators: {0} is always a number greater than 5
Catalog.GetString ("Wrapping an anniversary present costs one euro. The anniversary present costs {0} euros more than the cost to wrap it. How much does it cost to both purchase and wrap the present?"),
present);
- answer = String.Format (
- Catalog.GetString ("Individually, the present costs one euro more to purchase than to wrap."));
+ answer = Catalog.GetString ("Individually, the present costs one euro more to purchase than to wrap.");
break;
default:
throw new Exception ("Unexpected value");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]