[gnome-commander] Moved method definition from header in cc file
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Moved method definition from header in cc file
- Date: Fri, 28 Apr 2017 21:34:54 +0000 (UTC)
commit a475355d102bbe1f250f7c6d00756499c092612b
Author: Uwe Scholz <uwescholz src gnome org>
Date: Tue Apr 18 22:04:46 2017 +0200
Moved method definition from header in cc file
src/tags/gnome-cmd-tags.cc | 16 ++++++++++++++++
src/tags/gnome-cmd-tags.h | 18 ------------------
2 files changed, 16 insertions(+), 18 deletions(-)
---
diff --git a/src/tags/gnome-cmd-tags.cc b/src/tags/gnome-cmd-tags.cc
index 1d08955..ecbcc9f 100644
--- a/src/tags/gnome-cmd-tags.cc
+++ b/src/tags/gnome-cmd-tags.cc
@@ -804,3 +804,19 @@ const gchar *gcmd_tags_get_description(const GnomeCmdTag tag)
{
return _(metatags[tag].description);
}
+
+void GnomeCmdFileMetadata::add (const GnomeCmdTag tag, std::string value)
+{
+ if (value.empty())
+ return;
+
+ // remove trailing whitespace from a string
+ std::string::size_type string_end = value.find_last_not_of(" \t\n\r\0",std::string::npos,5);
+
+ if (string_end==std::string::npos)
+ return;
+
+ value.erase(string_end+1);
+
+ metadata[tag].insert(value);
+}
diff --git a/src/tags/gnome-cmd-tags.h b/src/tags/gnome-cmd-tags.h
index 73528a7..57fbae9 100644
--- a/src/tags/gnome-cmd-tags.h
+++ b/src/tags/gnome-cmd-tags.h
@@ -564,24 +564,6 @@ inline gboolean GnomeCmdFileMetadata::is_accessed (const GnomeCmdTagClass tag_cl
return elem==accessed.end() ? FALSE : elem->second;
}
-
-void GnomeCmdFileMetadata::add (const GnomeCmdTag tag, std::string value)
-{
- if (value.empty())
- return;
-
- // remove trailing whitespace from a string
- std::string::size_type string_end = value.find_last_not_of(" \t\n\r\0",std::string::npos,5);
-
- if (string_end==std::string::npos)
- return;
-
- value.erase(string_end+1);
-
- metadata[tag].insert(value);
-}
-
-
inline void GnomeCmdFileMetadata::add (const GnomeCmdTag tag, const gchar *value)
{
if (value && *value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]