Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1dc1eaad
Kaydet (Commit)
1dc1eaad
authored
Kas 26, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix unoidl sourceprovider old-style service duplicate member checks
Change-Id: Ifa19a427543e76053e9b249c479e1e13f3599bcc
üst
fee37966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
11 deletions
+45
-11
sourceprovider-parser.y
unoidl/source/sourceprovider-parser.y
+45
-11
No files found.
unoidl/source/sourceprovider-parser.y
Dosyayı görüntüle @
1dc1eaad
...
@@ -2673,9 +2673,21 @@ serviceBase:
...
@@ -2673,9 +2673,21 @@ serviceBase:
+ " direct base service " + name + " is unpublished"));
+ " direct base service " + name + " is unpublished"));
YYERROR;
YYERROR;
}
}
//TODO: check uniqueness
std::vector<unoidl::AnnotatedReference> & v(
(opt ? pad->directOptionalBaseServices : pad->directMandatoryBaseServices)
opt
.push_back(unoidl::AnnotatedReference(name, annotations($1)));
? pad->directOptionalBaseServices : pad->directMandatoryBaseServices);
for (std::vector<unoidl::AnnotatedReference>::iterator i(v.begin());
i != v.end(); ++i)
{
if (name == i->name) {
error(
@4, yyscanner,
("accumulation-based service " + data->currentName
+ " duplicate direct base service " + name));
YYERROR;
}
}
v.push_back(unoidl::AnnotatedReference(name, annotations($1)));
}
}
;
;
...
@@ -2734,16 +2746,27 @@ serviceInterfaceBase:
...
@@ -2734,16 +2746,27 @@ serviceInterfaceBase:
}
}
if (data->publishedContext && !opt && !pubBase) {
if (data->publishedContext && !opt && !pubBase) {
error(
error(
@
5
, yyscanner,
@
4
, yyscanner,
("published accumulation-based service " + data->currentName
("published accumulation-based service " + data->currentName
+ " direct base interface " + name + " is unpublished"));
+ " direct base interface " + name + " is unpublished"));
YYERROR;
YYERROR;
}
}
//TODO: check uniqueness
std::vector<unoidl::AnnotatedReference> & v(
(opt
opt
? pad->directOptionalBaseInterfaces
? pad->directOptionalBaseInterfaces
: pad->directMandatoryBaseInterfaces)
: pad->directMandatoryBaseInterfaces);
.push_back(unoidl::AnnotatedReference(name, annotations($1)));
for (std::vector<unoidl::AnnotatedReference>::iterator i(v.begin());
i != v.end(); ++i)
{
if (name == i->name) {
error(
@4, yyscanner,
("accumulation-based service " + data->currentName
+ " duplicate direct base interface " + name));
YYERROR;
}
}
v.push_back(unoidl::AnnotatedReference(name, annotations($1)));
}
}
;
;
...
@@ -2812,7 +2835,7 @@ serviceProperty:
...
@@ -2812,7 +2835,7 @@ serviceProperty:
error(
error(
@3, yyscanner,
@3, yyscanner,
("illegal accumulation-based service " + data->currentName
("illegal accumulation-based service " + data->currentName
+ " direct
attribute
" + id + " type"));
+ " direct
property
" + id + " type"));
YYERROR;
YYERROR;
break;
break;
default:
default:
...
@@ -2821,7 +2844,18 @@ serviceProperty:
...
@@ -2821,7 +2844,18 @@ serviceProperty:
rtl::Reference<unoidl::detail::SourceProviderAccumulationBasedServiceEntityPad>
rtl::Reference<unoidl::detail::SourceProviderAccumulationBasedServiceEntityPad>
pad(getCurrentPad<unoidl::detail::SourceProviderAccumulationBasedServiceEntityPad>(
pad(getCurrentPad<unoidl::detail::SourceProviderAccumulationBasedServiceEntityPad>(
data));
data));
//TODO: check uniqueness
for (std::vector<unoidl::AccumulationBasedServiceEntity::Property>::iterator
i(pad->directProperties.begin());
i != pad->directProperties.end(); ++i)
{
if (id == i->name) {
error(
@4, yyscanner,
("accumulation-based service " + data->currentName
+ " duplicate direct property " + id));
YYERROR;
}
}
pad->directProperties.push_back(
pad->directProperties.push_back(
unoidl::AccumulationBasedServiceEntity::Property(
unoidl::AccumulationBasedServiceEntity::Property(
id, t.getName(),
id, t.getName(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment