[gnote] Remove redundant cast in noteoftheday
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove redundant cast in noteoftheday
- Date: Sat, 11 Jul 2020 16:11:56 +0000 (UTC)
commit 1f8b511d7bab6a945c766c51b03e37f906104c8e
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Jul 11 18:27:41 2020 +0300
Remove redundant cast in noteoftheday
src/addins/noteoftheday/noteoftheday.cpp | 6 +-----
src/addins/noteoftheday/noteoftheday.desktop.in.in | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/addins/noteoftheday/noteoftheday.cpp b/src/addins/noteoftheday/noteoftheday.cpp
index b04b208e..be6fc588 100644
--- a/src/addins/noteoftheday/noteoftheday.cpp
+++ b/src/addins/noteoftheday/noteoftheday.cpp
@@ -167,11 +167,7 @@ bool NoteOfTheDay::has_changed(const gnote::NoteBase::Ptr & note)
date_time.get_year()),
*static_cast<gnote::NoteManager*>(¬e->manager()));
- return get_content_without_title(std::static_pointer_cast<gnote::Note>(note)->text_content())
- == get_content_without_title(
- gnote::utils::XmlDecoder::decode(original_xml))
- ? false
- : true;
+ return get_content_without_title(note->text_content()) !=
get_content_without_title(gnote::utils::XmlDecoder::decode(original_xml));
}
}
diff --git a/src/addins/noteoftheday/noteoftheday.desktop.in.in
b/src/addins/noteoftheday/noteoftheday.desktop.in.in
index 8be3b7cd..aef3dc15 100644
--- a/src/addins/noteoftheday/noteoftheday.desktop.in.in
+++ b/src/addins/noteoftheday/noteoftheday.desktop.in.in
@@ -4,7 +4,7 @@ _Name=Note of the Day
_Description=Automatically creates a "Today" note for easily jotting down daily thoughts
_Authors=Debarshi Ray and the Tomboy Project
Category=Tools
-Version=0.3
+Version=0.4
DefaultEnabled=false
Module=libnoteoftheday
LibgnoteRelease=@LIBGNOTE_RELEASE@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]