Add patch 0001-Add-function-operator-for-class-ParserCallback
This commit is contained in:
parent
89f0dc7db4
commit
6351677127
52
0001-Add-function-operator-for-class-ParserCallback.patch
Normal file
52
0001-Add-function-operator-for-class-ParserCallback.patch
Normal file
@ -0,0 +1,52 @@
|
||||
From d8f728febf1ca43a3fa06926f2a5290daa3048a8 Mon Sep 17 00:00:00 2001
|
||||
From: lwx916518 <lizhenhua12@huawei.com>
|
||||
Date: Tue, 19 May 2020 19:26:39 +0800
|
||||
Subject: [PATCH] Add function operator= for class ParserCallback
|
||||
|
||||
---
|
||||
ext_libs/muparser/muParserCallback.cpp | 16 ++++++++++++++++
|
||||
ext_libs/muparser/muParserCallback.h | 1 +
|
||||
2 files changed, 17 insertions(+)
|
||||
|
||||
diff --git a/ext_libs/muparser/muParserCallback.cpp b/ext_libs/muparser/muParserCallback.cpp
|
||||
index 2044fe1..27c5b08 100755
|
||||
--- a/ext_libs/muparser/muParserCallback.cpp
|
||||
+++ b/ext_libs/muparser/muParserCallback.cpp
|
||||
@@ -386,6 +386,22 @@ namespace mu
|
||||
m_eOprtAsct = ref.m_eOprtAsct;
|
||||
}
|
||||
|
||||
+ ParserCallback& ParserCallback::operator=(const ParserCallback& cb)
|
||||
+ {
|
||||
+ if (this != &cb)
|
||||
+ {
|
||||
+ m_pFun = cb.m_pFun;
|
||||
+ m_iArgc = cb.m_iArgc;
|
||||
+ m_bAllowOpti = cb.m_bAllowOpti;
|
||||
+ m_iCode = cb.m_iCode;
|
||||
+ m_iType = cb.m_iType;
|
||||
+ m_iPri = cb.m_iPri;
|
||||
+ m_eOprtAsct = cb.m_eOprtAsct;
|
||||
+ }
|
||||
+
|
||||
+ return *this;
|
||||
+ }
|
||||
+
|
||||
//---------------------------------------------------------------------------
|
||||
/** \brief Clone this instance and return a pointer to the new instance. */
|
||||
ParserCallback* ParserCallback::Clone() const
|
||||
diff --git a/ext_libs/muparser/muParserCallback.h b/ext_libs/muparser/muParserCallback.h
|
||||
index ef32b49..e8e274d 100755
|
||||
--- a/ext_libs/muparser/muParserCallback.h
|
||||
+++ b/ext_libs/muparser/muParserCallback.h
|
||||
@@ -81,6 +81,7 @@ public:
|
||||
ParserCallback(strfun_type3 a_pFun, bool a_bAllowOpti);
|
||||
ParserCallback();
|
||||
ParserCallback(const ParserCallback &a_Fun);
|
||||
+ ParserCallback& operator=(const ParserCallback& cb);
|
||||
|
||||
ParserCallback* Clone() const;
|
||||
|
||||
--
|
||||
2.23.0
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
Name: mstflint
|
||||
Summary: Firmware Burning and Diagnostics Tools
|
||||
Version: 4.10.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
License: GPLv2+ or BSD
|
||||
Url: https://github.com/Mellanox/mstflint
|
||||
Source: https://github.com/Mellanox/%{name}/releases/download/v4.10.0-2/%{name}-%{version}.tar.gz
|
||||
Patch0000: 0001-Add-function-operator-for-class-ParserCallback.patch
|
||||
|
||||
BuildRequires: libstdc++-devel zlib-devel libibmad-devel gcc-c++ gcc
|
||||
BuildRequires: libcurl-devel boost-devel libxml2-devel openssl-devel
|
||||
@ -42,5 +43,8 @@ export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Tue May 19 2020 lizhenhua <lizhenhua12@huawei.com> - 4.10.0-5
|
||||
- Add function operator= for class ParserCallback
|
||||
|
||||
* Wed Dec 11 2019 catastrowings <jianghuhao1994@163.com> - 4.10.0-4
|
||||
- openEuler init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user