Skip to content

Commit

Permalink
update to the latest oatpp API version.
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Oct 25, 2021
1 parent 1846f75 commit 0b6aa36
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
## use these variables to configure module installation

set(OATPP_THIS_MODULE_NAME oatpp-zlib) ## name of the module (also name of folders in installation dirs)
set(OATPP_THIS_MODULE_VERSION "1.2.5") ## version of the module (also sufix of folders in installation dirs)
set(OATPP_THIS_MODULE_VERSION "1.3.0") ## version of the module (also sufix of folders in installation dirs)
set(OATPP_THIS_MODULE_LIBRARIES oatpp-zlib) ## list of libraries to find when find_package is called
set(OATPP_THIS_MODULE_TARGETS oatpp-zlib) ## list of targets to install
set(OATPP_THIS_MODULE_DIRECTORIES oatpp-zlib) ## list of directories to install
Expand Down
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# https://aka.ms/yaml

jobs:
- job: ubuntu_16_04
displayName: 'Build - Ubuntu 16.04'
- job: ubuntu_20_04
displayName: 'Build - Ubuntu 20.04'
continueOnError: false
pool:
vmImage: 'Ubuntu 16.04'
vmImage: 'ubuntu-20.04'
workspace:
clean: all
steps:
Expand Down
4 changes: 2 additions & 2 deletions test/oatpp-zlib/DeflateAsyncTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class TestCoroutine : public oatpp::async::Coroutine<TestCoroutine> {
return finish();
}

oatpp::utils::random::Random::randomBytes(m_original->getData(), m_original->getSize());
m_inStream.reset(m_original.getPtr(), m_original->getData(), m_original->getSize());
oatpp::utils::random::Random::randomBytes((p_char8)m_original->data(), m_original->size());
m_inStream.reset(m_original.getPtr(), (p_char8)m_original->data(), m_original->size());
m_outStream.setCurrentPosition(0);
return yieldTo(&TestCoroutine::runPipeline);
}
Expand Down
4 changes: 2 additions & 2 deletions test/oatpp-zlib/DeflateTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void runCompressorPipeline (bool gzip) {
for (v_int32 d = 1; d <= 64; d++) {

oatpp::String original(1024);
oatpp::utils::random::Random::randomBytes(original->getData(), original->getSize());
oatpp::utils::random::Random::randomBytes((p_char8)original->data(), original->size());

oatpp::data::stream::BufferInputStream inStream(original);
oatpp::data::stream::BufferOutputStream outStream;
Expand Down Expand Up @@ -75,7 +75,7 @@ void runCompressor (bool gzip) {
for (v_int32 d = 1; d <= 64; d++) {

oatpp::String original(1024);
oatpp::utils::random::Random::randomBytes(original->getData(), original->getSize());
oatpp::utils::random::Random::randomBytes((p_char8)original->data(), original->size());

oatpp::data::buffer::IOBuffer buffer;

Expand Down

0 comments on commit 0b6aa36

Please # to comment.