]> git.lyx.org Git - features.git/blobdiff - src/support/os_win32.cpp
Fix Qt6 deprecation warning (QString::fromUcs4(uint))
[features.git] / src / support / os_win32.cpp
index 82e57d2eb69adfe1a72074505bae21856b58016b..1d40e56742a6f51a8e18c97056b839c8d2c1548d 100644 (file)
 
 #include <config.h>
 
+#include "support/os_win32.h"
+
 #include "LyXRC.h"
 
 #include "support/os.h"
-#include "support/os_win32.h"
 
 #include "support/debug.h"
 #include "support/environment.h"
@@ -32,6 +33,7 @@
 #include "support/lassert.h"
 
 #include <cstdlib>
+#include <iostream>
 #include <vector>
 
 #include <QString>
@@ -228,8 +230,8 @@ void init(int argc, char ** argv[])
                        // to the outer split which sets cygdrive with its
                        // contents until the first blank, discarding the
                        // unneeded return value.
-                       if (p.first != -1 && prefixIs(p.second, "Prefix"))
-                               split(split(p.second, '\n'), cygdrive, ' ');
+                       if (p.valid && prefixIs(p.result, "Prefix"))
+                               split(split(p.result, '\n'), cygdrive, ' ');
                }
        }