File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ string File::digidocppPath()
321
321
{
322
322
#ifdef _WIN32
323
323
PWSTR knownFolder {};
324
- if (SHGetKnownFolderPath (FOLDERID_RoamingAppData, KF_FLAG_CREATE , nullptr , &knownFolder) != S_OK)
324
+ if (SHGetKnownFolderPath (FOLDERID_RoamingAppData, KF_FLAG_DONT_VERIFY , nullptr , &knownFolder) != S_OK)
325
325
THROW (" Failed to get home directory" );
326
326
string appData = (fs::path (knownFolder) / " digidocpp" ).u8string ();
327
327
CoTaskMemFree (knownFolder);
@@ -338,26 +338,6 @@ string File::digidocppPath()
338
338
#endif
339
339
}
340
340
341
- /* *
342
- * Returns true if the path is relative
343
- *
344
- * @return returns true if the path is relative
345
- */
346
- bool File::isRelative (const string &path)
347
- {
348
- f_string _path = encodeName (path);
349
- if (_path.empty ()) return true ;
350
- if (_path[0 ] == ' /' ) return false ;
351
- #ifdef _WIN32
352
- // drive, e.g. "a:", or UNC root, e.q. "//"
353
- if ( _path.length () >= 2 &&
354
- ((iswalpha (_path[0 ]) && _path[1 ] == ' :' ) ||
355
- (_path[0 ] == ' /' && _path[1 ] == ' /' )) )
356
- return false ;
357
- #endif
358
- return true ;
359
- }
360
-
361
341
/* *
362
342
* Constructs the full file path in the format "file:///fullpath" in URI encoding.
363
343
*
You can’t perform that action at this time.
0 commit comments