MCPcopy Create free account
hub / github.com/Norbyte/ositools / Set

Method Set

OsiInterface/DivInterface.cpp:35–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35 void STDWString::Set(std::wstring const & s)
36 {
37 if (Capacity > 7) {
38 GameFree(BufPtr);
39 }
40
41 Size = s.size();
42 Capacity = s.size();
43
44 if (Size > 7) {
45 // FIXME - memory leak!
46 BufPtr = GameAlloc<wchar_t>(Capacity + 1);
47 wcscpy_s(BufPtr, Capacity + 1, s.c_str());
48 } else {
49 wcscpy_s(Buf, 8, s.c_str());
50 }
51 }
52
53 CRPGStats_Modifier * ModifierList::GetAttributeInfo(const char * name, int * attributeIndex) const
54 {

Callers 3

setFlagMethod · 0.80
ShowStartupErrorMethod · 0.80
CreateCustomStatInternalFunction · 0.80

Calls 1

GameFreeFunction · 0.85

Tested by

no test coverage detected