diff options
author | Dennis Kasprzyk <onestone@compiz-fusion.org> | 2009-03-15 16:06:29 +0100 |
---|---|---|
committer | Dennis kasprzyk <onestone@compiz-fusion.org> | 2009-03-15 16:06:29 +0100 |
commit | f8cf2bc2d5a7fe2d4f90f217aa1b7f6e2d47c345 (patch) | |
tree | 38d61b9e1a4a3f447f47475e46ea2b17ae3dcd69 /src/option.cpp | |
parent | cb423b48a53ae10fd401d32a28c3e365a70b3b7e (diff) | |
download | zcomp-f8cf2bc2d5a7fe2d4f90f217aa1b7f6e2d47c345.tar.gz zcomp-f8cf2bc2d5a7fe2d4f90f217aa1b7f6e2d47c345.tar.bz2 |
Added base class for get/setOption(s) functions.
Diffstat (limited to 'src/option.cpp')
-rw-r--r-- | src/option.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/option.cpp b/src/option.cpp index 0140812..d90fbfc 100644 --- a/src/option.cpp +++ b/src/option.cpp @@ -582,6 +582,13 @@ CompOption::Restriction::operator= (const CompOption::Restriction &rest) } CompOption * +CompOption::Class::getOption (const CompString &name) const +{ + CompOption *o = CompOption::findOption (getOptions (), name); + return o; +} + +CompOption * CompOption::findOption (CompOption::Vector &options, CompString name, unsigned int *index) |