[tracker/libtracker-miner] TrackerMiner: Use g_set_error_literal().
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] TrackerMiner: Use g_set_error_literal().
- Date: Mon, 31 Aug 2009 15:52:04 +0000 (UTC)
commit 9e6cbe667e0f15c74402b1697d8f989dbdaf24fe
Author: Carlos Garnacho <carlos lanedo com>
Date: Mon Aug 31 16:58:55 2009 +0200
TrackerMiner: Use g_set_error_literal().
src/libtracker-miner/tracker-miner.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.c b/src/libtracker-miner/tracker-miner.c
index a9c2f1c..d67a13c 100644
--- a/src/libtracker-miner/tracker-miner.c
+++ b/src/libtracker-miner/tracker-miner.c
@@ -584,9 +584,8 @@ tracker_miner_pause (TrackerMiner *miner,
if (g_strcmp0 (application, pd->application) == 0 &&
g_strcmp0 (reason, pd->reason) == 0) {
/* Can't use duplicate pauses */
- g_set_error (error, TRACKER_MINER_ERROR, 0,
- "%s",
- _("Pause application and reason match an already existing pause request"));
+ g_set_error_literal (error, TRACKER_MINER_ERROR, 0,
+ _("Pause application and reason match an already existing pause request"));
return -1;
}
}
@@ -614,11 +613,10 @@ tracker_miner_resume (TrackerMiner *miner,
g_return_val_if_fail (TRACKER_IS_MINER (miner), FALSE);
if (!g_hash_table_remove (miner->private->pauses, GINT_TO_POINTER (cookie))) {
- g_set_error (error, TRACKER_MINER_ERROR, 0,
- "%s",
- _("Cookie not recognised to resume paused miner"));
+ g_set_error_literal (error, TRACKER_MINER_ERROR, 0,
+ _("Cookie not recognised to resume paused miner"));
return FALSE;
- }
+ }
if (g_hash_table_size (miner->private->pauses) == 0) {
/* Resume */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]