diff options
author | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-06-08 11:27:01 (GMT) |
---|---|---|
committer | Kavindra Devi Palaraja <kavindra.palaraja@nokia.com> | 2009-06-08 11:27:11 (GMT) |
commit | f18e6bc6cfdeae8eb171b8c64403c91295b7a1f0 (patch) | |
tree | b14f8e069cc1868a580d225518ff12e20294687b /examples/tutorials/addressbook/part4/addressbook.cpp | |
parent | 61d1dcea0efa6b0809639b781bb49baf252b3aad (diff) | |
download | Qt-f18e6bc6cfdeae8eb171b8c64403c91295b7a1f0.zip Qt-f18e6bc6cfdeae8eb171b8c64403c91295b7a1f0.tar.gz Qt-f18e6bc6cfdeae8eb171b8c64403c91295b7a1f0.tar.bz2 |
Doc - removing redundant return statements
Reviewed-By: Ariya Hidayat <ariya.hidayat@nokia.com>
Diffstat (limited to 'examples/tutorials/addressbook/part4/addressbook.cpp')
-rw-r--r-- | examples/tutorials/addressbook/part4/addressbook.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/tutorials/addressbook/part4/addressbook.cpp b/examples/tutorials/addressbook/part4/addressbook.cpp index 95def9c..06f8a09 100644 --- a/examples/tutorials/addressbook/part4/addressbook.cpp +++ b/examples/tutorials/addressbook/part4/addressbook.cpp @@ -135,7 +135,6 @@ void AddressBook::submitContact() if (name == "" || address == "") { QMessageBox::information(this, tr("Empty Field"), tr("Please enter a name and address.")); - return; } //! [submitContact() function part1] if (currentMode == AddingMode) { @@ -147,7 +146,6 @@ void AddressBook::submitContact() } else { QMessageBox::information(this, tr("Add Unsuccessful"), tr("Sorry, \"%1\" is already in your address book.").arg(name)); - return; } //! [submitContact() function part1] //! [submitContact() function part2] @@ -162,7 +160,6 @@ void AddressBook::submitContact() } else { QMessageBox::information(this, tr("Edit Unsuccessful"), tr("Sorry, \"%1\" is already in your address book.").arg(name)); - return; } } else if (oldAddress != address) { QMessageBox::information(this, tr("Edit Successful"), |