texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Config.pm (Texinfo::MainConfig::new)


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Config.pm (Texinfo::MainConfig::new): bless module hash and not input hash. Return explicitly the blessed hashes.
Date: Sat, 04 Sep 2021 12:39:25 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new e6c87d1  * tp/Texinfo/Config.pm (Texinfo::MainConfig::new): bless 
module hash and not input hash.  Return explicitly the blessed hashes.
e6c87d1 is described below

commit e6c87d193380bfb02aabe83fe842b020dc91283a
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Sep 4 18:39:17 2021 +0200

    * tp/Texinfo/Config.pm (Texinfo::MainConfig::new):
    bless module hash and not input hash.  Return explicitly the
    blessed hashes.
---
 tp/Texinfo/Config.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tp/Texinfo/Config.pm b/tp/Texinfo/Config.pm
index 69556e1..86462b2 100644
--- a/tp/Texinfo/Config.pm
+++ b/tp/Texinfo/Config.pm
@@ -414,10 +414,12 @@ sub new(;$)
   if (defined($options)) {
     # creates a new object based on input hash reference
     %$additional_conf = %$options;
-    bless $options;
+    bless $additional_conf;
+    return $additional_conf;
   } else {
     # use Texinfo::Config
     bless $cmdline_options;
+    return $cmdline_options;
   }
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]