[sword-svn] r3756 - trunk/bindings/swig
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Thu Jul 23 01:19:09 EDT 2020
Author: greg.hellings
Date: 2020-07-23 01:19:09 -0400 (Thu, 23 Jul 2020)
New Revision: 3756
Modified:
trunk/bindings/swig/markupcallback.h
Log:
Change calls to maktch Sword deprecations
Modified: trunk/bindings/swig/markupcallback.h
===================================================================
--- trunk/bindings/swig/markupcallback.h 2020-07-19 18:43:07 UTC (rev 3755)
+++ trunk/bindings/swig/markupcallback.h 2020-07-23 05:19:09 UTC (rev 3756)
@@ -13,34 +13,34 @@
private:
MarkupCallback* _callback;
-public:
- MyMarkup(MarkupCallback* callback, char markup = FMT_THML, char encoding = ENC_UTF8) :
+public:
+ MyMarkup(MarkupCallback* callback, char markup = FMT_THML, char encoding = ENC_UTF8) :
MarkupFilterMgr(markup, encoding), _callback(callback) {}
- virtual ~MyMarkup() {
- delCallback();
+ virtual ~MyMarkup() {
+ delCallback();
}
- void delCallback() {
- delete _callback; _callback = 0;
+ void delCallback() {
+ delete _callback; _callback = 0;
}
- void setCallback(MarkupCallback *cb) {
- delCallback();
- _callback = cb;
+ void setCallback(MarkupCallback *cb) {
+ delCallback();
+ _callback = cb;
}
- bool call(SWModule* x) {
- if (_callback)
- return _callback->run(x);
+ bool call(SWModule* x) {
+ if (_callback)
+ return _callback->run(x);
return false;
}
protected:
- virtual void AddRenderFilters(SWModule *module,
- ConfigEntMap §ion) {
+ virtual void addRenderFilters(SWModule *module,
+ ConfigEntMap §ion) {
if(!call(module)) {
- MarkupFilterMgr::AddRenderFilters(module, section);
- }
+ MarkupFilterMgr::addRenderFilters(module, section);
+ }
}
};
More information about the sword-cvs
mailing list