mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 03:33:25 +02:00
CR fix to change back to setPayload with const param
This commit is contained in:
parent
32b507d2ac
commit
8c9a14cdbe
3 changed files with 3 additions and 3 deletions
|
@ -155,7 +155,7 @@ int main(int argc, const char* argv[]) {
|
|||
if (voxelServerConfig) {
|
||||
qDebug("Reading Voxel Server Configuration.\n");
|
||||
qDebug() << " config: " << voxelServerConfig << "\n";
|
||||
voxelServerAssignment.copyPayload((uchar*)voxelServerConfig, strlen(voxelServerConfig) + 1);
|
||||
voxelServerAssignment.setPayload((uchar*)voxelServerConfig, strlen(voxelServerConfig) + 1);
|
||||
}
|
||||
|
||||
// construct a local socket to send with our created assignments to the global AS
|
||||
|
|
|
@ -102,7 +102,7 @@ Assignment::~Assignment() {
|
|||
|
||||
const int MAX_PAYLOAD_BYTES = 1024;
|
||||
|
||||
void Assignment::copyPayload(uchar* payload, int numBytes) {
|
||||
void Assignment::setPayload(const uchar* payload, int numBytes) {
|
||||
|
||||
if (numBytes > MAX_PAYLOAD_BYTES) {
|
||||
qDebug("Set payload called with number of bytes greater than maximum (%d). Will only transfer %d bytes.\n",
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
uchar* getPayload() { return _payload; }
|
||||
int getNumPayloadBytes() const { return _numPayloadBytes; }
|
||||
void copyPayload(uchar *payload, int numBytes);
|
||||
void setPayload(const uchar *payload, int numBytes);
|
||||
|
||||
int getNumberOfInstances() const { return _numberOfInstances; }
|
||||
void setNumberOfInstances(int numberOfInstances) { _numberOfInstances = numberOfInstances; }
|
||||
|
|
Loading…
Reference in a new issue