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