summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-17 19:34:57 +0300
committerFat-Zer <fatzer2@gmail.com>2025-08-21 10:00:17 +0000
commit0bf48d928d7a50f6d3c3285ca88014100b828315 (patch)
treedc7e29c2ae4b3e1e49f65f2174df3dd35cc0d938
parentb15319ca4f4d4cc232b72dd16390d5c3d8ac2620 (diff)
downloadtdenetwork-0bf48d928d7a50f6d3c3285ca88014100b828315.tar.gz
tdenetwork-0bf48d928d7a50f6d3c3285ca88014100b828315.zip
kopete/sms: fix a crash caused by returning a reference to local object
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r--kopete/protocols/sms/services/smssendprovider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kopete/protocols/sms/services/smssendprovider.cpp b/kopete/protocols/sms/services/smssendprovider.cpp
index c403dd42..38dddb5f 100644
--- a/kopete/protocols/sms/services/smssendprovider.cpp
+++ b/kopete/protocols/sms/services/smssendprovider.cpp
@@ -150,7 +150,7 @@ void SMSSendProvider::setAccount(Kopete::Account *account)
const TQString& SMSSendProvider::name(int i)
{
if ( telPos == i || messagePos == i)
- return TQString();
+ return TQString::null;
else
return names[i];
}