From 609c7d974bfa04f270f71fb6ad75a305988b0f93 Mon Sep 17 00:00:00 2001 From: ItshMoh Date: Mon, 23 Oct 2023 14:36:37 +0530 Subject: [PATCH] Use of constexpr instead of define Signed-off-by: ItshMoh --- avogadro/io/dcdformat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avogadro/io/dcdformat.cpp b/avogadro/io/dcdformat.cpp index bdfc705457..83d5e7d06f 100644 --- a/avogadro/io/dcdformat.cpp +++ b/avogadro/io/dcdformat.cpp @@ -35,7 +35,7 @@ using Core::UnitCell; #endif #define DCD_EOF -1 -#define DCD_MAGIC 84 +constexpr int DCD_MAGIC = 84; #define DCD_IS_CHARMM 0x01 #define DCD_HAS_4DIMS 0x02 #define DCD_HAS_EXTRA_BLOCK 0x04