aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta/metadoc_object_setter.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-03-12 22:39:09 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-03-12 22:56:34 -0400
commite9e17be24eba558c30fcdc41ea5bb9a1da7fd4e7 (patch)
tree1ed3c4b528b0a8e54d0eb9babc391e562578c7b4 /src/doc_reform/meta/metadoc_object_setter.d
parentnix flake & env upkeep (diff)
mark modules as @safe: (& identify what is not)
Diffstat (limited to 'src/doc_reform/meta/metadoc_object_setter.d')
-rw-r--r--src/doc_reform/meta/metadoc_object_setter.d19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/doc_reform/meta/metadoc_object_setter.d b/src/doc_reform/meta/metadoc_object_setter.d
index 29d527b..7bfaebf 100644
--- a/src/doc_reform/meta/metadoc_object_setter.d
+++ b/src/doc_reform/meta/metadoc_object_setter.d
@@ -53,6 +53,7 @@
metadoc_object_setter.d
+/
module doc_reform.meta.metadoc_object_setter;
+@safe:
template ObjectSetter() {
/+ structs +/
struct DocObj_TxtAttrib_ {
@@ -118,25 +119,25 @@ template ObjectSetter() {
int o_n_bibliography = 0;
int o_n_book_index = 0;
int o_n_blurb = 0;
- @safe string object_number_substantive() const @property {
+ string object_number_substantive() const @property {
return (o_n_substantive == 0) ? "" : o_n_substantive.to!string;
}
- @safe string object_number_non_substantive() const @property {
+ string object_number_non_substantive() const @property {
return (o_n_non_substantive == 0) ? "" : o_n_non_substantive.to!string;
}
- @safe string object_number_glossary() const @property {
+ string object_number_glossary() const @property {
return (o_n_glossary == 0) ? "" : o_n_glossary.to!string;
}
- @safe string object_number_bibliography() const @property {
+ string object_number_bibliography() const @property {
return (o_n_bibliography == 0) ? "" : o_n_bibliography.to!string;
}
- @safe string object_number_book_index() const @property {
+ string object_number_book_index() const @property {
return (o_n_book_index == 0) ? "" : o_n_book_index.to!string;
}
- @safe string object_number_blurb() const @property {
+ string object_number_blurb() const @property {
return (o_n_blurb == 0) ? "" : o_n_blurb.to!string;
}
- @safe string marked_up_level() const @property {
+ string marked_up_level() const @property {
string _out;
switch (heading_lev_markup) {
case 0 : _out = "A"; break;
@@ -151,7 +152,7 @@ template ObjectSetter() {
}
return _out;
}
- @safe string object_number() const @property {
+ string object_number() const @property {
return (ocn == 0) ? "" : ocn.to!string;
}
bool object_number_off = false;
@@ -370,7 +371,7 @@ template ObjectSetter() {
enum OCNtype { ocn, non, bkidx, }
enum DomTags { none, open, close, close_and_open, open_still, }
enum Substitute { match, markup, }
- @safe static auto eN() {
+ static auto eN() {
struct _e {
enum bi {
off,