Skip to content

Commit

Permalink
Fix tests CI
Browse files Browse the repository at this point in the history
Remove unnecessary constexpr
  • Loading branch information
baderouaich committed Jul 4, 2024
1 parent 5ecdab7 commit 23f47f8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.20)
project(Enigma VERSION "3.0.0" DESCRIPTION "A Simple, Reliable and Efficient UI + CLI Encryption Tool" LANGUAGES CXX)
project(Enigma VERSION "3.0.0" DESCRIPTION "A Simple, Reliable and Efficient Encryption Tool" LANGUAGES CXX)

################# Options ###########################
option(ENIGMA_ENABLE_TESTS "Enable/Disable building of tests" OFF)
Expand Down
1 change: 1 addition & 0 deletions cmake/install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Type=Application
Name=${PROJECT_NAME}
Version=${PROJECT_VERSION}
Comment=${PROJECT_DESCRIPTION}
GenericName=${PROJECT_NAME}
Exec=${INSTALL_BASE_DIR}/Enigma
Icon=${INSTALL_BASE_DIR}/res/branding/Logo.png
Categories=Utility;Security
Expand Down
Binary file modified res/branding/Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/Meta/Meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

NS_ENIGMA_BEGIN

constexpr Meta::size_type Meta::EnigmaFooter::sizeInBytes() const noexcept {
Meta::size_type Meta::EnigmaFooter::sizeInBytes() const noexcept {
// NOTE: make sure you include any new member size here
return sizeof(magic) +
sizeof(version) +
Expand Down Expand Up @@ -164,7 +164,7 @@ Meta::EnigmaFooter Meta::EnigmaFooter::fromBase64(const std::string& base64) {
}


constexpr Meta::size_type Meta::EnigmaCipherChunk::sizeInBytes() const noexcept {
Meta::size_type Meta::EnigmaCipherChunk::sizeInBytes() const noexcept {
return sizeof(magic) +
sizeof(size_type) /*cipherSize*/ + cipher.size() +
sizeof(size_type) /*extraSize*/ + extra.size();
Expand Down
4 changes: 2 additions & 2 deletions src/Meta/Meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Meta final {
std::vector<byte> extra{};


[[nodiscard]] constexpr size_type sizeInBytes() const noexcept;
[[nodiscard]] size_type sizeInBytes() const noexcept;

/// Convert instance of this struct to an array of bytes.
[[nodiscard]] std::vector<byte> toBytes() const;
Expand All @@ -57,7 +57,7 @@ class Meta final {
std::vector<byte> cipher;
std::vector<byte> extra;

[[nodiscard]] constexpr size_type sizeInBytes() const noexcept;
[[nodiscard]] size_type sizeInBytes() const noexcept;

[[nodiscard]] std::vector<byte> toBytes() const;

Expand Down

0 comments on commit 23f47f8

Please sign in to comment.