[gnome-commander/Implement_CppCheck_suggestions] C++ cast, don't assign unused variable
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/Implement_CppCheck_suggestions] C++ cast, don't assign unused variable
- Date: Tue, 9 Apr 2019 20:16:20 +0000 (UTC)
commit 99f29bf9cf5420c933df71766826c041c9cc8cb9
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Apr 9 22:14:32 2019 +0200
C++ cast, don't assign unused variable
src/tags/gnome-cmd-tags-doc.cc | 2 +-
src/tags/gnome-cmd-tags-exiv2.cc | 2 +-
src/tags/gnome-cmd-tags-taglib.cc | 2 +-
src/utils.cc | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tags/gnome-cmd-tags-doc.cc b/src/tags/gnome-cmd-tags-doc.cc
index c84ec443..9014ad82 100644
--- a/src/tags/gnome-cmd-tags-doc.cc
+++ b/src/tags/gnome-cmd-tags-doc.cc
@@ -173,7 +173,7 @@ inline void process_msole_SO(GsfInput *input, GnomeCmdFileMetadata *metadata)
if (size < 0x374) // == 0x375 ??
return;
- gchar *buf = (gchar *) g_malloc0(size);
+ auto buf = static_cast<gchar*> (g_malloc0(size));
gsf_input_read(input, size, (guint8 *) buf);
if ((buf[0] != 0x0F) || (buf[1] != 0x0) ||
!g_str_has_prefix (&buf[2], SfxDocumentInfo) ||
diff --git a/src/tags/gnome-cmd-tags-exiv2.cc b/src/tags/gnome-cmd-tags-exiv2.cc
index b9534151..807e6f43 100644
--- a/src/tags/gnome-cmd-tags-exiv2.cc
+++ b/src/tags/gnome-cmd-tags-exiv2.cc
@@ -1,4 +1,4 @@
-/**
+/**
* @file gnome-cmd-tags-exiv2.cc
* @copyright (C) 2001-2006 Marcus Bjurman\n
* @copyright (C) 2007-2012 Piotr Eljasiak\n
diff --git a/src/tags/gnome-cmd-tags-taglib.cc b/src/tags/gnome-cmd-tags-taglib.cc
index babbd6cb..fdde8c3c 100644
--- a/src/tags/gnome-cmd-tags-taglib.cc
+++ b/src/tags/gnome-cmd-tags-taglib.cc
@@ -1,4 +1,4 @@
-/**
+/**
* @file gnome-cmd-tags-taglib.cc
* @copyright (C) 2001-2006 Marcus Bjurman\n
* @copyright (C) 2007-2012 Piotr Eljasiak\n
diff --git a/src/utils.cc b/src/utils.cc
index 13af9164..23d91e67 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -502,7 +502,7 @@ GnomeVFSFileSize calc_tree_size (const GnomeVFSURI *dir_uri, gulong *count)
{
// A file
GnomeVFSFileInfo *info = gnome_vfs_file_info_new ();
- result = gnome_vfs_get_file_info (dir_uri_str, info, GNOME_VFS_FILE_INFO_DEFAULT);
+ gnome_vfs_get_file_info (dir_uri_str, info, GNOME_VFS_FILE_INFO_DEFAULT);
size += info->size;
if (count!=NULL) {
(*count)++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]