Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/buildmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ void BuildManager::killCurrentProcess()
QString BuildManager::createTemporaryFileName()
{
QTemporaryFile *temp = new QTemporaryFile(QDir::tempPath () + "/texstudio_XXXXXX.tex");
temp->open();
bool rc = temp->open();
temp->setAutoRemove(false);
QString tempName = temp->fileName();
delete temp;
Expand Down Expand Up @@ -1848,7 +1848,7 @@ void BuildManager::preview(const QString &preamble, const PreviewSource &source,
//write preamble
QTemporaryFile *tf = new QTemporaryFile(tempPath + "hXXXXXX.tex");
REQUIRE(tf);
tf->open();
bool rc = tf->open();
QTextStream out(tf);
if (outputCodec) {
out << outputCodec->fromUnicode(preamble_mod);
Expand Down Expand Up @@ -1904,7 +1904,7 @@ void BuildManager::preview(const QString &preamble, const PreviewSource &source,
// (place /./ after the temporary directory because it fails otherwise with qt4.3 on win and the tempdir "t:")
QTemporaryFile *tf = new QTemporaryFile(tempPath + "XXXXXX.tex");
if (!tf) return;
tf->open();
bool rc = tf->open();

QTextStream out(tf);
if (outputCodec) {
Expand Down
2 changes: 1 addition & 1 deletion src/configmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2906,7 +2906,7 @@ void ConfigManager::setInterfaceStyle()
#endif
if(newStyle=="Orion Dark"){
QFile file(":/utilities/stylesheet_francesco.qss");
file.open(QFile::ReadOnly);
bool rc = file.open(QFile::ReadOnly);
QString styleSheet = QString::fromLatin1(file.readAll());
qApp->setStyleSheet(styleSheet);
darkMode=true;
Expand Down
2 changes: 1 addition & 1 deletion src/latexstyleparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ QStringList LatexStyleParser::readPackageTracing(QString fn) const
QString tempPath = QDir::tempPath() + QDir::separator() + "." + QDir::separator();
QTemporaryFile *tf = new QTemporaryFile(tempPath + "XXXXXX.tex");
if (!tf) return QStringList();
tf->open();
bool rc = tf->open();

QTextStream out(tf);
out << "\\documentclass{article}\n";
Expand Down
2 changes: 1 addition & 1 deletion src/pdfsplittool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ QString joinEscape(const QStringList &sl)
QString MultiProcessX::createTemporaryFileName(const QString &extension)
{
QTemporaryFile *temp = new QTemporaryFile(QDir::tempPath () + "/texstudio_XXXXXX" + extension);
temp->open();
bool rc = temp->open();
temp->setAutoRemove(false);
QString tempName = temp->fileName();
delete temp;
Expand Down
2 changes: 1 addition & 1 deletion src/searchquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ QString SearchQuery::searchFolder() const

SearchInfo SearchQuery::searchInFile(QString file, const QRegularExpression &regex){
QFile f(file);
f.open(QIODevice::ReadOnly);
bool rc = f.open(QIODevice::ReadOnly);
QTextStream textStream(&f);
SearchInfo result;
int lineNr=0;
Expand Down
6 changes: 3 additions & 3 deletions src/texstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7738,7 +7738,7 @@ void Texstudio::generateAddtionalTranslations()
QRegularExpression rxCommandOnly("^\\\\['`^\"~=.^]?[a-zA-Z]*(\\{\\})* *$"); //latex command
//copy menu item text
QFile xmlFile(":/uiconfig.xml");
xmlFile.open(QIODevice::ReadOnly);
bool rc = xmlFile.open(QIODevice::ReadOnly);
QDomDocument xml;
xml.setContent(&xmlFile);

Expand Down Expand Up @@ -7768,7 +7768,7 @@ void Texstudio::generateAddtionalTranslations()
}
// default formats
QFile xmlFile2(":/qxs/defaultFormats.qxf");
xmlFile2.open(QIODevice::ReadOnly);
rc = xmlFile2.open(QIODevice::ReadOnly);
xml.setContent(&xmlFile2);
QDomNodeList formats = xml.documentElement().elementsByTagName("format");
for (int i = 0; i < formats.size(); i++)
Expand All @@ -7782,7 +7782,7 @@ void Texstudio::generateAddtionalTranslations()
QStringList l_fn=dir.entryList({"*.xml"});
for(const QString &fn: l_fn){
QFile xmlFile3("tags/"+fn);
xmlFile3.open(QIODevice::ReadOnly);
rc = xmlFile3.open(QIODevice::ReadOnly);
xml.setContent(&xmlFile3);

QStringList tagNames = QStringList() << "section" << "item";
Expand Down