Convert space indentations to tabs
This commit is contained in:
parent
29c42d950b
commit
18f3e81fd1
@ -44,15 +44,15 @@ namespace spades {
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
MumbleLink::~MumbleLink() {
|
MumbleLink::~MumbleLink() {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
UnmapViewOfFile(mumbleLinkedMemory);
|
UnmapViewOfFile(mumbleLinkedMemory);
|
||||||
if (priv->obj != nullptr)
|
if (priv->obj != nullptr)
|
||||||
CloseHandle(priv->obj);
|
CloseHandle(priv->obj);
|
||||||
#else
|
#else
|
||||||
munmap(mumbleLinkedMemory, sizeof(*mumbleLinkedMemory));
|
munmap(mumbleLinkedMemory, sizeof(*mumbleLinkedMemory));
|
||||||
if (priv->fd > 0)
|
if (priv->fd > 0)
|
||||||
close(priv->fd);
|
close(priv->fd);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MumbleLink::set_mumble_vector3(float mumble_vec[3],
|
void MumbleLink::set_mumble_vector3(float mumble_vec[3],
|
||||||
@ -64,7 +64,7 @@ namespace spades {
|
|||||||
|
|
||||||
bool MumbleLink::init() {
|
bool MumbleLink::init() {
|
||||||
assert(mumbleLinkedMemory == nullptr);
|
assert(mumbleLinkedMemory == nullptr);
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
priv->obj = OpenFileMappingW(FILE_MAP_ALL_ACCESS, FALSE, L"MumbleLink");
|
priv->obj = OpenFileMappingW(FILE_MAP_ALL_ACCESS, FALSE, L"MumbleLink");
|
||||||
if (priv->obj == nullptr)
|
if (priv->obj == nullptr)
|
||||||
return false;
|
return false;
|
||||||
@ -77,7 +77,7 @@ namespace spades {
|
|||||||
priv->obj = nullptr;
|
priv->obj = nullptr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
std::string name = "/MumbleLink." + std::to_string(getuid());
|
std::string name = "/MumbleLink." + std::to_string(getuid());
|
||||||
|
|
||||||
priv->fd = shm_open(name.c_str(), O_RDWR, S_IRUSR | S_IWUSR);
|
priv->fd = shm_open(name.c_str(), O_RDWR, S_IRUSR | S_IWUSR);
|
||||||
@ -94,7 +94,7 @@ namespace spades {
|
|||||||
mumbleLinkedMemory = nullptr;
|
mumbleLinkedMemory = nullptr;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user