Commit 1f8b511d authored by Aurimas Černius's avatar Aurimas Černius

Remove redundant cast in noteoftheday

parent 6d9a8a0b
......@@ -167,11 +167,7 @@ bool NoteOfTheDay::has_changed(const gnote::NoteBase::Ptr & note)
date_time.get_year()),
*static_cast<gnote::NoteManager*>(&note->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));
}
}
......@@ -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@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment