[cheese/gnome-3-0] lib: no need to declare variable to retun photo/video paths
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/gnome-3-0] lib: no need to declare variable to retun photo/video paths
- Date: Mon, 11 Apr 2011 21:00:40 +0000 (UTC)
commit 98d0494020b3ab4b5aebbc069683813950c72c9e
Author: Lucas Rocha <lucasr gnome org>
Date: Sun Apr 3 15:29:09 2011 +0100
lib: no need to declare variable to retun photo/video paths
libcheese/cheese-fileutil.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/libcheese/cheese-fileutil.c b/libcheese/cheese-fileutil.c
index dfaf8f4..d2cd1bd 100644
--- a/libcheese/cheese-fileutil.c
+++ b/libcheese/cheese-fileutil.c
@@ -47,11 +47,7 @@ cheese_fileutil_get_video_path (CheeseFileUtil *fileutil)
{
CheeseFileUtilPrivate *priv = CHEESE_FILEUTIL_GET_PRIVATE (fileutil);
- gchar *path;
-
- path = priv->video_path;
-
- return path;
+ return priv->video_path;
}
gchar *
@@ -59,11 +55,7 @@ cheese_fileutil_get_photo_path (CheeseFileUtil *fileutil)
{
CheeseFileUtilPrivate *priv = CHEESE_FILEUTIL_GET_PRIVATE (fileutil);
- gchar *path;
-
- path = priv->photo_path;
-
- return path;
+ return priv->photo_path;
}
gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]