r23850 by jghali - Remove some useless blank lines
scribus-commit
scribus-commit at lists.scribus.net
Fri May 29 16:42:34 UTC 2020
Author: jghali
Date: Fri May 29 16:42:33 2020
New Revision: 23850
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23850
Log:
Remove some useless blank lines
Modified:
trunk/Scribus/scribus/pdfwriter.cpp
Modified: trunk/Scribus/scribus/pdfwriter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23850&path=/trunk/Scribus/scribus/pdfwriter.cpp
==============================================================================
--- trunk/Scribus/scribus/pdfwriter.cpp (original)
+++ trunk/Scribus/scribus/pdfwriter.cpp Fri May 29 16:42:33 2020
@@ -426,12 +426,10 @@
return result;
}
-
QByteArray toName(const QString& s)
{
return toName(toPdfDocEncoding(s));
}
-
QByteArray toName(QByteArray s)
{
@@ -459,7 +457,6 @@
tmp = tmp.replace(":", "");
return "D:" + tmp.toLatin1() + "Z";
}
-
QByteArray toRectangleArray(QRect r)
{
@@ -470,9 +467,6 @@
{
return "[" + toPdf(r.left()) + " " + toPdf(r.bottom()) + " " + toPdf(r.right()) + " " + toPdf(r.top()) + "]";
}
-
-
-
Writer::Writer()
{
@@ -509,7 +503,6 @@
0x2f, 0x0c, 0xa9, 0xfe, 0x64, 0x53, 0x69, 0x7a };
for (int a = 0; a < 32; ++a)
m_KeyGen[a] = kg_array[a];
-
}
@@ -523,7 +516,6 @@
return true;
}
-
ScStreamFilter* Writer::openStreamFilter(bool encrypted, PdfId objId)
{
if (encrypted)
@@ -534,7 +526,6 @@
return new ScNullEncodeFilter(&m_outStream);
}
-
bool Writer::close(bool abortExport)
{
bool result = (m_Spool.error() == QFile::NoError);
@@ -548,12 +539,10 @@
return result;
}
-
void Writer::setFileId(const QByteArray& id)
{
m_FileID = QCryptographicHash::hash(id, QCryptographicHash::Md5);
}
-
void Writer::setEncryption(bool keyLen16, const QByteArray& PassOwner, const QByteArray& PassUser, int Permissions)
{
@@ -589,9 +578,7 @@
write("/U "+Pdf::toHexString(uk)+"\n");
write("/P "+Pdf::toPdf(Permissions)+"\n>>");
endObj(EncryptObj);
-
- }
-
+ }
QByteArray Writer::encryptBytes(const QByteArray& in, PdfId ObjNum)
{
@@ -627,7 +614,6 @@
rc4Key.resize(qMin(m_KeyLen+5, 16));
return rc4Key;
}
-
QByteArray Writer::FitKey(const QByteArray & pass)
{
@@ -741,7 +727,6 @@
// return QCryptographicHash::hash(TBytes, QCryptographicHash::Md5);
// }
-
void Writer::writeHeader(const PDFVersion& Version)
{
switch (Version)
@@ -802,7 +787,6 @@
write(Pdf::toPdf(StX)+"\n%%EOF\n");
}
-
void Writer::write(const QByteArray& bytes)
{
m_outStream.writeRawData(bytes, bytes.size());
@@ -870,7 +854,6 @@
}
write(">>\n");
}
-
PdfId Writer::reserveObjects(unsigned int n)
{
More information about the scribus-commit
mailing list