From b2ded16ea04fc50acba553ab8eee059abbd1f315 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Mon, 8 Jun 2020 14:32:31 +0300
Subject: [PATCH] Minor changes

---
 components/structures/include/ftl/data/new_frame.hpp | 4 ++--
 components/structures/test/frame_unit.cpp            | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/structures/include/ftl/data/new_frame.hpp b/components/structures/include/ftl/data/new_frame.hpp
index 11cc40864..48c18ed8b 100644
--- a/components/structures/include/ftl/data/new_frame.hpp
+++ b/components/structures/include/ftl/data/new_frame.hpp
@@ -55,7 +55,7 @@ class Frame {
 	const T &get(ftl::codecs::Channel c) const;
 
 	template <typename T>
-	const T *getPtr(ftl::codecs::Channel c) const;
+	const T *getPtr(ftl::codecs::Channel c) const noexcept;
 
 	template <typename T>
 	T *getMutable(ftl::codecs::Channel c);
@@ -136,7 +136,7 @@ bool ftl::data::Frame::isType(ftl::codecs::Channel c) {
 }
 
 template <typename T>
-const T *ftl::data::Frame::getPtr(ftl::codecs::Channel c) const {
+const T *ftl::data::Frame::getPtr(ftl::codecs::Channel c) const noexcept {
 	auto i = data_.find(c);
 	if (i != data_.end()) {
 		return std::any_cast<T>(&i->second);
diff --git a/components/structures/test/frame_unit.cpp b/components/structures/test/frame_unit.cpp
index af9c9387d..da8ffca59 100644
--- a/components/structures/test/frame_unit.cpp
+++ b/components/structures/test/frame_unit.cpp
@@ -277,13 +277,13 @@ TestB &ftl::data::Frame::create<TestB>(ftl::codecs::Channel c, const TestB &b) {
 }
 
 template <>
-const TestA *ftl::data::Frame::getPtr<TestA>(ftl::codecs::Channel c) const {
+const TestA *ftl::data::Frame::getPtr<TestA>(ftl::codecs::Channel c) const noexcept {
 	auto *ptr = getPtr<TestC>(c);
 	return (ptr) ? &ptr->a : nullptr;
 }
 
 template <>
-const TestB *ftl::data::Frame::getPtr<TestB>(ftl::codecs::Channel c) const {
+const TestB *ftl::data::Frame::getPtr<TestB>(ftl::codecs::Channel c) const noexcept {
 	auto *ptr = getPtr<TestC>(c);
 	return (ptr) ? &ptr->b : nullptr;
 }
-- 
GitLab