summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2011-02-07 22:25:38 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2011-02-14 21:51:52 +0000
commitc489e94cbf7783946aca62611717aeeee98a535d (patch)
tree5aeefa93679e1bf31d6dc026a21ea11e2d03b074 /tools
parent271ee14ed7a1c6373a8f1f5b4d91dc2410c5909d (diff)
Use “dup” instead of “get” in method names which return a referenced object
This bumps our Vala dependency to 0.11.6, which includes a necessary fix for the CCode annotation we use. Helps: bgo#629078
Diffstat (limited to 'tools')
-rw-r--r--tools/import.vala2
-rw-r--r--tools/inspect/command-backends.vala2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/import.vala b/tools/import.vala
index 238aab9..5b7ddb4 100644
--- a/tools/import.vala
+++ b/tools/import.vala
@@ -108,7 +108,7 @@ public class Folks.ImportTool : Object
}
/* Get the key-file backend */
- Backend kf_backend = backend_store.get_backend_by_name ("key-file");
+ Backend kf_backend = backend_store.dup_backend_by_name ("key-file");
if (kf_backend == null)
{
diff --git a/tools/inspect/command-backends.vala b/tools/inspect/command-backends.vala
index d3a5d18..1bf12a5 100644
--- a/tools/inspect/command-backends.vala
+++ b/tools/inspect/command-backends.vala
@@ -68,7 +68,7 @@ private class Folks.Inspect.Commands.Backends : Folks.Inspect.Command
{
/* Show the details of a particular backend */
Backend backend =
- this.client.backend_store.get_backend_by_name (command_string);
+ this.client.backend_store.dup_backend_by_name (command_string);
if (backend == null)
{