[gnote] Move semantics for Exception



commit 06541cde89881d27cfebed240a571475f4b797f3
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Jun 19 18:35:25 2022 +0300

    Move semantics for Exception

 src/sharp/exception.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/sharp/exception.hpp b/src/sharp/exception.hpp
index 202e69ff..d975cd52 100644
--- a/src/sharp/exception.hpp
+++ b/src/sharp/exception.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013,2017,2019 Aurimas Cernius
+ * Copyright (C) 2013,2017,2019,2022 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  * 
  * Permission is hereby granted, free of charge, to any person obtaining a
@@ -40,8 +40,8 @@ class Exception
   : public std::exception
 {
 public:
-  Exception(const Glib::ustring & m) noexcept
-    : m_what(m)
+  Exception(Glib::ustring && m) noexcept
+    : m_what(std::move(m))
     {
     }
   virtual ~Exception() noexcept;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]