diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2009-02-08 23:54:32 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2009-02-08 23:54:32 +0000 |
| commit | bbac3773a111069893e6522cce0ee316d5801bcf (patch) | |
| tree | 5dfd373c1c713136533647bfeb5066a654c25113 /src/libnrtype | |
| parent | scale x-axis-rotation angle in elliptical arc (diff) | |
| download | inkscape-bbac3773a111069893e6522cce0ee316d5801bcf.tar.gz inkscape-bbac3773a111069893e6522cce0ee316d5801bcf.zip | |
gcc warning cleanup:
warning: suggest a space before ‘;’ or explicit braces around empty body
in 'for'/'while' statement
(bzr r7251)
Diffstat (limited to 'src/libnrtype')
| -rw-r--r-- | src/libnrtype/Layout-TNG-OutIter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libnrtype/Layout-TNG-OutIter.cpp b/src/libnrtype/Layout-TNG-OutIter.cpp index 8dd61c491..0fc061bfc 100644 --- a/src/libnrtype/Layout-TNG-OutIter.cpp +++ b/src/libnrtype/Layout-TNG-OutIter.cpp @@ -55,7 +55,7 @@ double Layout::_getChunkWidth(unsigned chunk_index) const unsigned span_index; if (chunk_index) { span_index = _lineToSpan(_chunks[chunk_index].in_line); - for ( ; span_index < _spans.size() && _spans[span_index].in_chunk < chunk_index ; span_index++); + for ( ; span_index < _spans.size() && _spans[span_index].in_chunk < chunk_index ; span_index++){}; } else span_index = 0; for ( ; span_index < _spans.size() && _spans[span_index].in_chunk == chunk_index ; span_index++) @@ -518,7 +518,7 @@ void Layout::simulateLayoutUsingKerning(iterator const &from, iterator const &to unsigned prev_cluster_char_index; for (prev_cluster_char_index = char_index - 1 ; prev_cluster_char_index != 0 && !_characters[prev_cluster_char_index].char_attributes.is_cursor_position ; - prev_cluster_char_index--); + prev_cluster_char_index--){}; if (_characters[char_index].span(this).in_chunk == _characters[char_index - 1].span(this).in_chunk) { // dx is zero for the first char in a chunk // this algorithm works by comparing the summed widths of the glyphs with the observed @@ -908,7 +908,7 @@ bool Layout::iterator::_cursorLeftOrRightLocalXByWord(Direction direction) { bool r; while ((r = _cursorLeftOrRightLocalX(direction)) - && !_parent_layout->_characters[_char_index].char_attributes.is_word_start); + && !_parent_layout->_characters[_char_index].char_attributes.is_word_start){}; return r; } |
