"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/qtsingleapplication/src/qtlockedfile_win.cpp" between
cb2bib-2.0.0.tar.gz and cb2bib-2.0.1.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

qtlockedfile_win.cpp  (cb2bib-2.0.0):qtlockedfile_win.cpp  (cb2bib-2.0.1)
skipping to change at line 49 skipping to change at line 49
****************************************************************************/ ****************************************************************************/
#include "qtlockedfile.h" #include "qtlockedfile.h"
#include <qt_windows.h> #include <qt_windows.h>
#include <QFileInfo> #include <QFileInfo>
#define MUTEX_PREFIX "QtLockedFile mutex " #define MUTEX_PREFIX "QtLockedFile mutex "
// Maximum number of concurrent read locks. Must not be greater than MAXIMUM_WAI T_OBJECTS // Maximum number of concurrent read locks. Must not be greater than MAXIMUM_WAI T_OBJECTS
#define MAX_READERS MAXIMUM_WAIT_OBJECTS #define MAX_READERS MAXIMUM_WAIT_OBJECTS
#if QT_VERSION >= 0x050000 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#define QT_WA(unicode, ansi) unicode #define QT_WA(unicode, ansi) unicode
#endif #endif
Qt::HANDLE QtLockedFile::getMutexHandle(int idx, bool doCreate) Qt::HANDLE QtLockedFile::getMutexHandle(int idx, bool doCreate)
{ {
if (mutexname.isEmpty()) if (mutexname.isEmpty())
{ {
QFileInfo fi(*this); QFileInfo fi(*this);
mutexname = QString::fromLatin1(MUTEX_PREFIX) mutexname = QString::fromLatin1(MUTEX_PREFIX)
+ fi.absoluteFilePath().toLower(); + fi.absoluteFilePath().toLower();
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)