[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:25:01 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=e973d55

The following commit has been merged in the master branch:
commit e973d557a9177d2665affcd07b262ae7e19f487a
Author: Aleix Pol <aleixpol at kde.org>
Date:   Fri Dec 5 16:16:36 2014 +0100

    QString::toAscii -> ::toLatin1
---
 image-sharer/mpform.cpp | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/image-sharer/mpform.cpp b/image-sharer/mpform.cpp
index 7fb046d..0fc2f15 100644
--- a/image-sharer/mpform.cpp
+++ b/image-sharer/mpform.cpp
@@ -44,7 +44,7 @@
 MPForm::MPForm()
 {
     m_boundary  = "----------";
-    m_boundary += KRandom::randomString(42 + 13).toAscii();
+    m_boundary += KRandom::randomString(42 + 13).toLatin1();
 }
 
 MPForm::~MPForm()
@@ -77,20 +77,20 @@ bool MPForm::addPair(const QString& name, const QString& value, const QString& c
     if (!name.isEmpty())
     {
         str += "Content-Disposition: form-data; name=\"";
-        str += name.toAscii();
+        str += name.toLatin1();
         str += "\"
";
     }
 
     if (!contentType.isEmpty())
     {
-        str += "Content-Type: " + QByteArray(contentType.toAscii());
+        str += "Content-Type: " + QByteArray(contentType.toLatin1());
         str += "
";
         str += "Mime-version: 1.0 ";
         str += "
";
     }
 
     str += "Content-Length: ";
-    str += content_length.toAscii();
+    str += content_length.toLatin1();
     str += "

";
     str += value.toUtf8();
 
@@ -130,16 +130,16 @@ bool MPForm::addFile(const QString& name, const QString& path)
     str += m_boundary;
     str += "
";
     str += "Content-Disposition: form-data; name=\"";
-    str += name.toAscii();
+    str += name.toLatin1();
     str += "\"; ";
     str += "filename=\"";
     str += QFile::encodeName(imageFile.fileName());
     str += "\"
";
     str += "Content-Length: ";
-    str += file_size.toAscii();
+    str += file_size.toLatin1();
     str += "
";
     str += "Content-Type: ";
-    str +=  mime.toAscii();
+    str +=  mime.toLatin1();
     str += "

";
 
     m_buffer.append(str);
@@ -170,16 +170,16 @@ bool MPForm::addFile(const QString& name, const QString& filePath, const QByteAr
     str += m_boundary;
     str += "
";
     str += "Content-Disposition: form-data; name=\"";
-    str += name.toAscii();
+    str += name.toLatin1();
     str += "\"; ";
     str += "filename=\"";
     str += QFile::encodeName(QFileInfo(filePath).fileName());
     str += "\"
";
     str += "Content-Length: ";
-    str += file_size.toAscii();
+    str += file_size.toLatin1();
     str += "
";
     str += "Content-Type: ";
-    str +=  mime.toAscii();
+    str +=  mime.toLatin1();
     str += "

";
 
     m_buffer.append(str);

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list