tesseract  4.0.0-1-g2a2b
icuerrorcode.cpp
Go to the documentation of this file.
1 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 // http://www.apache.org/licenses/LICENSE-2.0
7 // Unless required by applicable law or agreed to in writing, software
8 // distributed under the License is distributed on an "AS IS" BASIS,
9 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 // See the License for the specific language governing permissions and
11 // limitations under the License.
12 //
14 
15 #include "icuerrorcode.h"
16 
17 namespace tesseract {
18 
19 // Destructor.
20 // It is defined here, so the compiler can create a single vtable
21 // instead of weak vtables in every compilation unit.
23  if (isFailure()) {
24  handleFailure();
25  }
26 }
27 
28 } // namespace tesseract.
virtual void handleFailure() const
Definition: icuerrorcode.h:51