[cheese] 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] lib: no need to declare variable to retun photo/video paths
- Date: Mon, 11 Apr 2011 20:59:10 +0000 (UTC)
commit e7c97ded3cac7f87374ec4975626926ab80599ee
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]