[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/knotes (silent)
From:       David Faure <faure () kde ! org>
Date:       2004-06-30 17:20:53
Message-ID: 20040630172053.2F7709976 () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

CVS_SILENT just source code readability and more useable warnings.


  M +12 -12    knotesapp.cpp   1.88


--- kdepim/knotes/knotesapp.cpp  #1.87:1.88
@@ -157,20 +157,20 @@ QString KNotesApp::newNote( const QStrin
 {
     // create the new note
-    KCal::Journal *note = new KCal::Journal();
+    KCal::Journal *journal = new KCal::Journal();
 
     // new notes have the current date/time as title if none was given
     if ( !name.isEmpty() )
-        note->setSummary( name );
+        journal->setSummary( name );
     else
-        note->setSummary( KGlobal::locale()->formatDateTime( QDateTime::currentDateTime() ) );
+        journal->setSummary( KGlobal::locale()->formatDateTime( QDateTime::currentDateTime() ) );
 
     // the body of the note
-    note->setDescription( text );
+    journal->setDescription( text );
 
-    m_manager->addNewNote( note );
+    m_manager->addNewNote( journal );
 
-    showNote( note->uid() );
+    showNote( journal->uid() );
 
-    return note->uid();
+    return journal->uid();
 }
 
@@ -187,5 +187,5 @@ void KNotesApp::showNote( const QString&
         showNote( note );
     else
-        kdWarning(5500) << "No note with id: " << id << endl;
+        kdWarning(5500) << "showNote: no note with id: " << id << endl;
 }
 
@@ -196,5 +196,5 @@ void KNotesApp::hideNote( const QString&
         note->hide();
     else
-        kdWarning(5500) << "No note with id: " << id << endl;
+        kdWarning(5500) << "hideNote: no note with id: " << id << endl;
 }
 
@@ -205,5 +205,5 @@ void KNotesApp::killNote( const QString&
         note->slotKill( force );
     else
-        kdWarning(5500) << "No note with id: " << id << endl;
+        kdWarning(5500) << "killNote: no note with id: " << id << endl;
 }
 
@@ -249,5 +249,5 @@ void KNotesApp::setName( const QString& 
         note->setName( newName );
     else
-        kdWarning(5500) << "No note with id: " << id << endl;
+        kdWarning(5500) << "setName: no note with id: " << id << endl;
 }
 
@@ -258,5 +258,5 @@ void KNotesApp::setText( const QString& 
         note->setText( newText );
     else
-        kdWarning(5500) << "No note with id: " << id << endl;
+        kdWarning(5500) << "setText: no note with id: " << id << endl;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic