Skip to content

Commit 2017cd8

Browse files
committed
Several fixes in Compressor related to MacOS
1 parent 2387e8b commit 2017cd8

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

include/lsp-plug.in/resource/Compressor.h

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2021 Linux Studio Plugins Project <https://lsp-plug.in/>
3-
* (C) 2021 Vladimir Sadovnikov <[email protected]>
2+
* Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
* (C) 2025 Vladimir Sadovnikov <[email protected]>
44
*
55
* This file is part of lsp-runtime-lib
66
* Created on: 1 мар. 2021 г.
@@ -42,10 +42,6 @@ namespace lsp
4242
*/
4343
class Compressor
4444
{
45-
private:
46-
Compressor & operator = (const Compressor &);
47-
Compressor (const Compressor &);
48-
4945
protected:
5046
lltl::darray<raw_resource_t> vEntries;
5147
io::OutMemoryStream sTemp; // Temporary buffer
@@ -64,8 +60,13 @@ namespace lsp
6460

6561
public:
6662
explicit Compressor();
63+
Compressor(const Compressor &) = delete;
64+
Compressor(Compressor &&) = delete;
6765
~Compressor();
6866

67+
Compressor & operator = (const Compressor &) = delete;
68+
Compressor & operator = (Compressor &&) = delete;
69+
6970
public:
7071
/**
7172
* Close the compressor
@@ -120,8 +121,9 @@ namespace lsp
120121
status_t create_dir(const LSPString *name);
121122
status_t create_dir(const io::Path *name);
122123
};
123-
}
124-
}
124+
125+
} /* namespace resource */
126+
} /* namespace lsp */
125127

126128

127129

src/main/resource/Compressor.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/>
3-
* (C) 2023 Vladimir Sadovnikov <[email protected]>
2+
* Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
* (C) 2025 Vladimir Sadovnikov <[email protected]>
44
*
55
* This file is part of lsp-runtime-lib
66
* Created on: 1 мар. 2021 г.
@@ -384,7 +384,7 @@ namespace lsp
384384
if ((res = sOut.bwrite(false)) != STATUS_OK)
385385
return res;
386386

387-
return (bits > 0) ? sOut.writev(value, bits) : STATUS_OK;
387+
return (bits > 0) ? sOut.writev(lsp::fixed_int(value), bits) : STATUS_OK;
388388
}
389389

390390
size_t Compressor::est_uint(size_t value, size_t initial, size_t stepping)
@@ -427,7 +427,7 @@ namespace lsp
427427

428428
return STATUS_OK;
429429
}
430-
}
431-
}
430+
} /* namespaec resource */
431+
} /* namespace lsp */
432432

433433

0 commit comments

Comments
 (0)