forked from Public-Mirror/Textractor
refactor
This commit is contained in:
parent
b9a4a94d61
commit
c78747c228
@ -7,8 +7,5 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
QDir::setCurrent(QFileInfo(S(Util::GetModuleFilename().value())).absolutePath());
|
QDir::setCurrent(QFileInfo(S(Util::GetModuleFilename().value())).absolutePath());
|
||||||
|
|
||||||
QApplication a(argc, argv);
|
return QApplication(argc, argv), MainWindow().show(), QApplication::exec();
|
||||||
MainWindow w;
|
|
||||||
w.show();
|
|
||||||
return a.exec();
|
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,8 @@ template<typename E, typename M = std::mutex>
|
|||||||
class ThreadSafe
|
class ThreadSafe
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
template <typename... Args> ThreadSafe(Args&&... args) : contents(std::forward<Args>(args)...) {}
|
template <typename... Args>
|
||||||
|
ThreadSafe(Args&&... args) : contents(std::forward<Args>(args)...) {}
|
||||||
auto operator->()
|
auto operator->()
|
||||||
{
|
{
|
||||||
struct
|
struct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user