MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / setPath

Method setPath

src/envshortcut.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 }
36
37 void setPath(const QString& s)
38 {
39 if (s.isEmpty()) {
40 throw ShellLinkException("path cannot be empty");
41 }
42
43 const auto r = m_link->SetPath(s.toStdWString().c_str());
44 throwOnFail(r, QString("failed to set target path '%1'").arg(s));
45 }
46
47 void setArguments(const QString& s)
48 {

Callers 6

adjustForVirtualizedFunction · 0.80
renameMethod · 0.80
currentSavesDirMethod · 0.80
spawnLootcliMethod · 0.80
helperFailedFunction · 0.80
addMethod · 0.80

Calls 3

ShellLinkExceptionClass · 0.85
QStringClass · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected